From 6494b0a8daccdaf44c69fc9962b4f16d92f5d30b Mon Sep 17 00:00:00 2001 From: oetiker Date: Thu, 8 Nov 2007 10:13:48 +0000 Subject: [PATCH] must use int2num to prevent overflows -- Mike Perham mperham gmail.com git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1212 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 f568aa76..e911d9a1 100644 --- a/program/bindings/ruby/main.c +++ b/program/bindings/ruby/main.c @@ -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; -- 2.30.2