diff --git a/mozilla/htmlparser/tests/outsinks/Convert.cpp b/mozilla/htmlparser/tests/outsinks/Convert.cpp index b5430f51b59..7ad07bd7a6b 100644 --- a/mozilla/htmlparser/tests/outsinks/Convert.cpp +++ b/mozilla/htmlparser/tests/outsinks/Convert.cpp @@ -62,12 +62,12 @@ Compare(nsString& str, nsString& aFileName) // Inefficiently read from the file: nsString inString; - char c; + int c; int index = 0; int different = 0; while ((c = getc(file)) != EOF) { - inString.AppendWithConversion(c); + inString.AppendWithConversion((char)c); // CVS isn't doing newline comparisons on these files for some reason. // So compensate for possible newline problems in the CVS file: if (c == '\n' && str[index] == '\r') @@ -302,9 +302,9 @@ Usage: %s [-i intype] [-o outtype] [-f flags] [-w wrapcol] [-c comparison_file] // Read in the string: very inefficient, but who cares? nsString inString; - char c; + int c; while ((c = getc(file)) != EOF) - inString.AppendWithConversion(c); + inString.AppendWithConversion((char)c); if (file != stdin) fclose(file); diff --git a/mozilla/parser/htmlparser/tests/outsinks/Convert.cpp b/mozilla/parser/htmlparser/tests/outsinks/Convert.cpp index b5430f51b59..7ad07bd7a6b 100644 --- a/mozilla/parser/htmlparser/tests/outsinks/Convert.cpp +++ b/mozilla/parser/htmlparser/tests/outsinks/Convert.cpp @@ -62,12 +62,12 @@ Compare(nsString& str, nsString& aFileName) // Inefficiently read from the file: nsString inString; - char c; + int c; int index = 0; int different = 0; while ((c = getc(file)) != EOF) { - inString.AppendWithConversion(c); + inString.AppendWithConversion((char)c); // CVS isn't doing newline comparisons on these files for some reason. // So compensate for possible newline problems in the CVS file: if (c == '\n' && str[index] == '\r') @@ -302,9 +302,9 @@ Usage: %s [-i intype] [-o outtype] [-f flags] [-w wrapcol] [-c comparison_file] // Read in the string: very inefficient, but who cares? nsString inString; - char c; + int c; while ((c = getc(file)) != EOF) - inString.AppendWithConversion(c); + inString.AppendWithConversion((char)c); if (file != stdin) fclose(file);