refactor(Core/Misc): remove the ternary operator when used improperly (#3327)
This commit is contained in:
@@ -177,7 +177,7 @@ class ByteBuffer
|
||||
|
||||
ByteBuffer &operator>>(bool &value)
|
||||
{
|
||||
value = read<char>() > 0 ? true : false;
|
||||
value = (read<char>() > 0);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user