summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dcfad8c)
raw | patch | inline | side by side (parent: dcfad8c)
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) |
program/bindings/ruby/main.c | patch | blob | history |
index 445eae3d2cc371e3b8ecae5486665b95f65b84ee..21f6c0de54b255e67e34ae4271ef03ff62faa787 100644 (file)
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;
}