Code

must use int2num to prevent overflows -- Mike Perham mperham gmail.com
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 8 Nov 2007 10:13:48 +0000 (10:13 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Thu, 8 Nov 2007 10:13:48 +0000 (10:13 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1212 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/bindings/ruby/main.c

index f568aa76fbc806b064bbe0ecd7bc9e7697e8b45c..e911d9a15324050202117cb4c1ffce36b01180ea 100644 (file)
@@ -130,8 +130,8 @@ VALUE rb_rrd_fetch(VALUE self, VALUE args)
     free(raw_data);
    
     result = rb_ary_new2(4);
-    rb_ary_store(result, 0, INT2FIX(start));
-    rb_ary_store(result, 1, INT2FIX(end));
+    rb_ary_store(result, 0, INT2NUM(start));
+    rb_ary_store(result, 1, INT2NUM(end));
     rb_ary_store(result, 2, names);
     rb_ary_store(result, 3, data);
     return result;