From ffc13a6525c7c72cbb858380e6870106bf5a7dfa Mon Sep 17 00:00:00 2001 From: michal Date: Wed, 21 Aug 2002 15:47:54 +0000 Subject: *.c: Int vs Long cleanup git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'time.c') diff --git a/time.c b/time.c index 57027ca928..3b80965161 100644 --- a/time.c +++ b/time.c @@ -688,7 +688,7 @@ time_usec(time) struct time_object *tobj; GetTimeval(time, tobj); - return INT2NUM(tobj->tv.tv_usec); + return LONG2NUM(tobj->tv.tv_usec); } static VALUE @@ -783,7 +783,7 @@ time_hash(time) GetTimeval(time, tobj); hash = tobj->tv.tv_sec ^ tobj->tv.tv_usec; - return INT2FIX(hash); + return LONG2FIX(hash); } static VALUE @@ -1276,9 +1276,8 @@ time_strftime(time, format) { struct time_object *tobj; char buffer[SMALLBUF]; - char *fmt; - char *buf = buffer; - int len; + char *fmt, *buf = buffer; + long len; VALUE str; GetTimeval(time, tobj); -- cgit v1.2.3