diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-27 13:23:18 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-27 13:23:18 +0000 |
| commit | 310ce85bba2b2631f37b62dff8c5cc178a60a95b (patch) | |
| tree | 3c270a80e80c109acdbe9365bbceea0eb6f80c5d /time.c | |
| parent | 69488912ecfcd7c9eb186496e560a4a7825ac6bb (diff) | |
| download | ruby-310ce85bba2b2631f37b62dff8c5cc178a60a95b.tar.gz ruby-310ce85bba2b2631f37b62dff8c5cc178a60a95b.tar.xz ruby-310ce85bba2b2631f37b62dff8c5cc178a60a95b.zip | |
* time.c (time_to_s): fixed format mismatch.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
| -rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1221,7 +1221,7 @@ time_to_s(VALUE 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); |
