Index: base/third_party/nspr/prtime.cc |
=================================================================== |
--- base/third_party/nspr/prtime.cc (revision 125777) |
+++ base/third_party/nspr/prtime.cc (working copy) |
@@ -1043,8 +1043,9 @@ |
/* "-" is ignored at the beginning of a token if we have not yet |
parsed a year (e.g., the second "-" in "30-AUG-1966"), or if |
the character after the dash is not a digit. */ |
- if (*rest == '-' && ((rest > string && isalpha(rest[-1]) && year < 0) |
- || rest[1] < '0' || rest[1] > '9')) |
+ if (*rest == '-' && ((rest > string && |
+ isalpha((unsigned char)rest[-1]) && year < 0) || |
+ rest[1] < '0' || rest[1] > '9')) |
{ |
rest++; |
goto SKIP_MORE; |