From 507682a30d7172710e4f8a90fbe6520bec94c920 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@2216 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/bindings/ruby/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/bindings/ruby/main.c b/program/bindings/ruby/main.c index 445eae3d..21f6c0de 100644 --- a/program/bindings/ruby/main.c +++ b/program/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.30.2