From fd168f7d90fe82bb26a41c5831dc0661f67f3d1a Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 23 Nov 2011 08:49:23 +0000 Subject: [PATCH] use long int format git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2216 a5681a0c-68f1-0310-ab6d-d61299d08faa --- bindings/ruby/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c index 445eae3..21f6c0d 100644 --- a/bindings/ruby/main.c +++ b/bindings/ruby/main.c @@ -51,12 +51,12 @@ string_arr string_arr_new( 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; } -- 2.11.0