Fixed minor compiler warnings.

This commit is contained in:
JET 2010-11-08 09:47:46 -07:00
parent 0713f8d5cb
commit 8c54446c67

View File

@ -148,7 +148,7 @@ class Locale { // represents an ISO two-char language/country pair
unsigned len = strlen(language);
if (len != FIELDLEN) return false;
const char* p = language - 1;
while (islower(*++p));
while (islower(*++p)) ;
if (*p != '\0') return false;
return true;
}
@ -158,7 +158,7 @@ class Locale { // represents an ISO two-char language/country pair
unsigned len = strlen(region);
if (len != FIELDLEN) return false;
const char* p = region - 1;
while (isupper(*++p));
while (isupper(*++p)) ;
if (*p != '\0') return false;
return true;
}