diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-01 14:12:34 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-01 14:12:34 +0000 |
commit | 9c9c46e5a30fb47068337932eefde759b2763551 (patch) | |
tree | a429539f796421ea579002b90be8bd2b6fc1c1c0 /ext/date | |
parent | 1b94420174641d78b99c45074e8770a91efa2d2b (diff) |
* 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
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/date_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 || |