mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 999717 - Fix gcc -Wlogical-op warning in js. r=mrbkap
This commit is contained in:
parent
79f8aaa566
commit
166df78b9e
@ -136,14 +136,8 @@ XPCConvert::NativeData2JS(MutableHandleValue d, const void* s,
|
||||
d.setNumber(*static_cast<const double*>(s));
|
||||
return true;
|
||||
case nsXPTType::T_BOOL :
|
||||
{
|
||||
bool b = *static_cast<const bool*>(s);
|
||||
|
||||
NS_WARN_IF_FALSE(b == 1 || b == 0,
|
||||
"Passing a malformed bool through XPConnect");
|
||||
d.setBoolean(b);
|
||||
d.setBoolean(*static_cast<const bool*>(s));
|
||||
return true;
|
||||
}
|
||||
case nsXPTType::T_CHAR :
|
||||
{
|
||||
char p = *static_cast<const char*>(s);
|
||||
|
Loading…
Reference in New Issue
Block a user