Changing a mixture of old C-style casts and C++ constructor type casts to NS_STATIC_CAST to be consistent. This is a followup to my build bustage fix this morning, sr=scc@mozilla.org

This commit is contained in:
jst%netscape.com 2001-05-22 02:36:50 +00:00
parent 88dd737fa7
commit 22fd504a80

View File

@ -234,19 +234,19 @@ 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, NS_STATIC_CAST(PRUint8, delims[i]));
}
NS_ASSERTION(delims[i] == '\0', "too many delimiters");
// skip to beginning
while (*str && IS_DELIM(delimTable, PRUint8(*str))) {
while (*str && IS_DELIM(delimTable, NS_STATIC_CAST(PRUint8, *str))) {
str++;
}
result = str;
// fix up the end of the token
while (*str) {
if (IS_DELIM(delimTable, (PRUint8)*str)) {
if (IS_DELIM(delimTable, NS_STATIC_CAST(PRUint8, *str))) {
*str++ = '\0';
break;
}