summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e760d0f)
raw | patch | inline | side by side (parent: e760d0f)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 18 Dec 2011 11:54:57 +0000 (11:54 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 18 Dec 2011 11:54:57 +0000 (11:54 +0000) |
program/bindings/ruby/main.c | patch | blob | history |
index 445eae3d2cc371e3b8ecae5486665b95f65b84ee..5096eef94cb3454e5a500e6c522f92081d457bc5 100644 (file)
a.strings[i + 1] = strdup(StringValuePtr(v));
break;
case T_FIXNUM:
- snprintf(buf, 63, "%d", FIX2INT(v));
+ snprintf(buf, 63, "%ld", (long)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",
- rb_class2name(CLASS_OF(v)), i);
+ "invalid argument - %s, expected T_STRING or T_FIXNUM on index %ld",
+ (long)rb_class2name(CLASS_OF(v)), i);
break;
}
}