Bug 398435. Fix prbool bugs in xpcom. r=bsmedberg a=sayrer

This commit is contained in:
2007-10-15 16:40:09 -07:00
parent 93056468c7
commit 84afaf50ee
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;
}