aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-01 14:12:34 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-01 14:12:34 +0000
commit278063283b2b02c60da7e2acd21490a9c5c80fd8 (patch)
treea429539f796421ea579002b90be8bd2b6fc1c1c0
parentc20a241983266a8ff99c618ff8616a3172c5e086 (diff)
downloadruby-278063283b2b02c60da7e2acd21490a9c5c80fd8.tar.gz
* ext/date/date_parse.c (date_zone_to_diff): it's nonsence and really
harm that to use unary minus operator with unsigned value. get rid of test failures introduced at r56312. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/date/date_parse.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fc78dd4680..e0da0e0336 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Oct 1 23:08:47 2016 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/date/date_parse.c (date_zone_to_diff): it's nonsence and really
+ harm that to use unary minus operator with unsigned value.
+ get rid of test failures introduced at r56312.
+
Sat Oct 1 22:17:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* compile.c (iseq_compile_each): move numeric literal range
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c
index 97923d7623..b74230d291 100644
--- a/ext/date/date_parse.c
+++ b/ext/date/date_parse.c
@@ -415,7 +415,7 @@ date_zone_to_diff(VALUE str)
{
char *p;
int sign = 0;
- unsigned long hour = 0, min = 0, sec = 0;
+ long hour = 0, min = 0, sec = 0;
if (l > 3 &&
(strncmp(s, "gmt", 3) == 0 ||