summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-28 08:05:23 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-08-28 08:05:23 +0000
commit55c157da550407d4792900ba1d831b129f474153 (patch)
tree300e3a58cac901929c00518abaf11d7d3caaeb50 /time.c
parent8915d93e0e2e0267454ec996b3446c15d2594a46 (diff)
downloadruby-55c157da550407d4792900ba1d831b129f474153.tar.gz
ruby-55c157da550407d4792900ba1d831b129f474153.tar.xz
ruby-55c157da550407d4792900ba1d831b129f474153.zip
Int vs Long cleanup #3 (ruby-core:352)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time.c b/time.c
index 40e565ce9..223f5de8a 100644
--- a/time.c
+++ b/time.c
@@ -1193,7 +1193,7 @@ time_utc_offset(time)
#else
struct tm *u, *l;
time_t t;
- int off;
+ long off;
l = &tobj->tm;
t = tobj->tv.tv_sec;
u = gmtime(&t);
@@ -1210,7 +1210,7 @@ time_utc_offset(time)
off = off * 24 + l->tm_hour - u->tm_hour;
off = off * 60 + l->tm_min - u->tm_min;
off = off * 60 + l->tm_sec - u->tm_sec;
- return INT2FIX(off);
+ return LONG2FIX(off);
#endif
}
}