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

This commit is contained in:
2007-10-19 16:26:52 -07:00
parent 50ca999690
commit 1fd1fd3713
13 changed files with 30 additions and 30 deletions

View File

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