mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
1b94420174
commit
9c9c46e5a3
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
Sat Oct 1 22:17:49 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* compile.c (iseq_compile_each): move numeric literal range
|
* compile.c (iseq_compile_each): move numeric literal range
|
||||||
|
|
|
@ -415,7 +415,7 @@ date_zone_to_diff(VALUE str)
|
||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
int sign = 0;
|
int sign = 0;
|
||||||
unsigned long hour = 0, min = 0, sec = 0;
|
long hour = 0, min = 0, sec = 0;
|
||||||
|
|
||||||
if (l > 3 &&
|
if (l > 3 &&
|
||||||
(strncmp(s, "gmt", 3) == 0 ||
|
(strncmp(s, "gmt", 3) == 0 ||
|
||||||
|
|
Loading…
Reference in a new issue