Bug 398435 - "PRBool misuse bugs in xpcom/" [p=taras r=bsmedberg a1.9=sayrer]

git-svn-id: svn://10.0.0.236/trunk@237940 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2007-10-19 23:26:53 +00:00
parent 17be277d6e
commit 3a2258a4f2
13 changed files with 30 additions and 30 deletions

View File

@@ -213,7 +213,7 @@ nsScriptableInputStream::ReadBoolean(PRBool* aBoolean)
{
PRUint8 byteResult;
nsresult rv = Read8(&byteResult);
*aBoolean = byteResult;
*aBoolean = !!byteResult;
return rv;
}