summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-27 13:23:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-27 13:23:18 +0000
commit5aa50d179985471dae64a4270359fc47e1bb63f9 (patch)
tree4017b0e5bebadf8107e89f610d3ff87d15b8ec21 /time.c
parent0aeeef369121fcac8a418e9a627013ed48ce02d3 (diff)
downloadruby-5aa50d179985471dae64a4270359fc47e1bb63f9.tar.gz
ruby-5aa50d179985471dae64a4270359fc47e1bb63f9.tar.xz
ruby-5aa50d179985471dae64a4270359fc47e1bb63f9.zip
* time.c (time_to_s): fixed format mismatch.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index dd35a5cbc..03d9076ce 100644
--- a/time.c
+++ b/time.c
@@ -1276,7 +1276,7 @@ time_to_s(time)
off = -off;
}
sprintf(buf2, "%%a %%b %%d %%H:%%M:%%S %c%02d%02d %%Y",
- sign, off/3600, off%3600/60);
+ sign, (int)(off/3600), (int)(off%3600/60));
len = strftime(buf, 128, buf2, &tobj->tm);
}
return rb_str_new(buf, len);