summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--time.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b046c10fa3..ee8026b644 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jul 27 22:21:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_to_s): fixed format mismatch.
+
Thu Jul 27 18:12:12 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* time.c: need to declare time_utc_offset.
diff --git a/time.c b/time.c
index dd35a5cbcb..03d9076ce5 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);