diff options
author | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-21 15:47:54 +0000 |
---|---|---|
committer | michal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-21 15:47:54 +0000 |
commit | fa79abb533cc03018a50945bc1d88b2e1b90248f (patch) | |
tree | 3b51176716a877c59eebbe6e82533d2cae3d7bc5 /time.c | |
parent | 2ab0494d233b2ee5f7eed92b7dfd0486ab36396d (diff) | |
download | ruby-fa79abb533cc03018a50945bc1d88b2e1b90248f.tar.gz ruby-fa79abb533cc03018a50945bc1d88b2e1b90248f.tar.xz ruby-fa79abb533cc03018a50945bc1d88b2e1b90248f.zip |
*.c: Int vs Long cleanup
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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); |