From: oetiker Date: Thu, 8 Nov 2007 10:13:48 +0000 (+0000) Subject: must use int2num to prevent overflows -- Mike Perham mperham gmail.com X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c95b0c42cbe8bab153c31caaff37d643310e7423;p=rrdtool.git must use int2num to prevent overflows -- Mike Perham mperham gmail.com git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1212 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c index f568aa7..e911d9a 100644 --- a/bindings/ruby/main.c +++ b/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;