ICU-2966 Fix for Visual Studio .NET

X-SVN-Rev: 12849
This commit is contained in:
George Rhoten 2003-08-16 00:05:46 +00:00
parent 655dbfcce6
commit cc19ae1c9d

View File

@ -179,7 +179,7 @@ OlsonTimeZone::OlsonTimeZone(const UResourceBundle* top,
r = ures_getByIndex(res, 1, NULL, &ec);
typeOffsets = ures_getIntVector(r, &i, &ec);
ures_close(r);
if ((i<2 || i>0x7FFF || (i&1!=0)) && U_SUCCESS(ec)) {
if ((i<2 || i>0x7FFF || ((i&1)!=0)) && U_SUCCESS(ec)) {
ec = U_INVALID_FORMAT_ERROR;
}
typeCount = (int16_t) i >> 1;