Fixing build bustage, apparently msvc doesn't like the C++ style PRUint8(...) casts here, changing them to old C style casts. r=peterv@netscape.com

This commit is contained in:
jst%netscape.com 2001-05-21 12:42:47 +00:00
Родитель 44f261ac24
Коммит 99c9bf9ae8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -234,7 +234,7 @@ char* nsCRT::strtok(char* string, const char* delims, char* *newStr)
delimTable[i] = '\0';
for (i = 0; delims[i]; i++) {
SET_DELIM(delimTable, PRUint8(delims[i]));
SET_DELIM(delimTable, (PRUint8)delims[i]);
}
NS_ASSERTION(delims[i] == '\0', "too many delimiters");
@ -246,7 +246,7 @@ char* nsCRT::strtok(char* string, const char* delims, char* *newStr)
// fix up the end of the token
while (*str) {
if (IS_DELIM(delimTable, PRUint8(*str))) {
if (IS_DELIM(delimTable, (PRUint8)*str)) {
*str++ = '\0';
break;
}