mirror of
https://github.com/openharmony/third_party_spirv-tools.git
synced 2026-07-21 03:35:25 -04:00
Merge pull request #23.
Fixing some C++ conversion errors. * Implicit conversion from int to bool. * Implicit conversion from size_t to uint32_t. * Implicit conversion from char* to uint8_t. Adding no-op color operators so unhandled platforms can still link.
This commit is contained in:
committed by
Dejan Mircevski
parent
01656363a7
commit
01c8d7a8fb
@@ -499,7 +499,7 @@ spv_result_t AssemblyContext::checkRangeAndIfHexThenSignExtend(
|
||||
// Hex values are a bit special. They decode as unsigned values, but
|
||||
// may represent a negative number. In this case, the overflow bits
|
||||
// should be zero.
|
||||
failed = (value & overflow_mask);
|
||||
failed = (value & overflow_mask) != 0;
|
||||
} else {
|
||||
const uint64_t value_as_u64 = static_cast<uint64_t>(value);
|
||||
// Check overflow in the ordinary case.
|
||||
|
||||
Reference in New Issue
Block a user