diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-08 05:54:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-08 05:54:29 +0000 |
commit | 6e19fc30b1b49540b9968b141872bc227be8bdd6 (patch) | |
tree | 8bca2f5e0d95685f0afbb7b4cdd9e53196cc00ec /ext/date/date_parse.c | |
parent | 0d65138c81e22dd70650389a173b528e97ba8ae2 (diff) |
suppress warnings
* ext/date/date_parse.c (date_zone_to_diff): suppress parentheses
warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_parse.c')
-rw-r--r-- | ext/date/date_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c index 68ae7a675c..17ce460877 100644 --- a/ext/date/date_parse.c +++ b/ext/date/date_parse.c @@ -530,13 +530,13 @@ date_zone_to_diff(VALUE str) str = rb_str_new2(s); - if (p = strchr(s, ':')) { + if ((p = strchr(s, ':')) != NULL) { hour = rb_str_new(s, p - s); s = ++p; - if (p = strchr(s, ':')) { + if ((p = strchr(s, ':')) != NULL) { min = rb_str_new(s, p - s); s = ++p; - if (p = strchr(s, ':')) { + if ((p = strchr(s, ':')) != NULL) { sec = rb_str_new(s, p - s); } else |