From db324cca200e14e4dfbc80faf888171875503066 Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Wed, 14 Feb 2001 01:23:23 +0000 Subject: [PATCH] 61757: fix a character type problem. Fix provided by Charles Hannum , r=me, sr=sfraser git-svn-id: svn://10.0.0.236/trunk@86959 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/tests/outsinks/Convert.cpp | 8 ++++---- mozilla/parser/htmlparser/tests/outsinks/Convert.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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);