summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40ed094)
raw | patch | inline | side by side (parent: 40ed094)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 23 Nov 2011 08:49:23 +0000 (08:49 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Wed, 23 Nov 2011 08:49:23 +0000 (08:49 +0000) |
bindings/ruby/main.c | patch | blob | history |
diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c
index 445eae3d2cc371e3b8ecae5486665b95f65b84ee..21f6c0de54b255e67e34ae4271ef03ff62faa787 100644 (file)
--- a/bindings/ruby/main.c
+++ b/bindings/ruby/main.c
a.strings[i + 1] = strdup(StringValuePtr(v));
break;
case T_FIXNUM:
- snprintf(buf, 63, "%d", FIX2INT(v));
+ snprintf(buf, 63, "%ld", FIX2INT(v));
a.strings[i + 1] = strdup(buf);
break;
default:
rb_raise(rb_eTypeError,
- "invalid argument - %s, expected T_STRING or T_FIXNUM on index %d",
+ "invalid argument - %s, expected T_STRING or T_FIXNUM on index %ld",
rb_class2name(CLASS_OF(v)), i);
break;
}