mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
7f62fa9565
commit
1e000f688a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user