ruby-changes:44244
From: usa <ko1@a...>
Date: Sat, 1 Oct 2016 23:12:39 +0900 (JST)
Subject: [ruby-changes:44244] usa:r56317 (trunk): * ext/date/date_parse.c (date_zone_to_diff): it's nonsence and really
usa 2016-10-01 23:12:34 +0900 (Sat, 01 Oct 2016) New Revision: 56317 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56317 Log: * 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. Modified files: trunk/ChangeLog trunk/ext/date/date_parse.c Index: ChangeLog =================================================================== --- ChangeLog (revision 56316) +++ ChangeLog (revision 56317) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Oct 1 23:08:47 2016 NAKAMURA Usaku <usa@r...> + + * 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@r...> * compile.c (iseq_compile_each): move numeric literal range Index: ext/date/date_parse.c =================================================================== --- ext/date/date_parse.c (revision 56316) +++ ext/date/date_parse.c (revision 56317) @@ -415,7 +415,7 @@ date_zone_to_diff(VALUE str) https://github.com/ruby/ruby/blob/trunk/ext/date/date_parse.c#L415 { 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 || -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/