Debugger: Fix some broken comparisons.
* Missing parentheses in integer comparison inversion * !=, not ! at the beginning of expression Spotted by Clang.
This commit is contained in:
parent
582afd9a7f
commit
4215eb6003
@ -224,7 +224,7 @@ ElfFile::Init(const char* fileName)
|
||||
return bytesRead < 0 ? errno : B_ERROR;
|
||||
|
||||
// magic
|
||||
if (!memcmp(elfIdent, ELFMAG, 4) == 0)
|
||||
if (!(memcmp(elfIdent, ELFMAG, 4) == 0))
|
||||
return B_ERROR;
|
||||
|
||||
// endianess
|
||||
|
@ -63,7 +63,7 @@ FunctionID::ComputeHashValue() const
|
||||
bool
|
||||
FunctionID::IsValid() const
|
||||
{
|
||||
return !fPath.Length() == 0 && !fFunctionName.Length() == 0;
|
||||
return fPath.Length() != 0 && fFunctionName.Length() != 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user