summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/AudioCommon.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2014-03-27 23:52:27 -0400
committercomex <comexk@gmail.com>2014-03-30 01:40:06 -0400
commitb5654a2464b02dc0bc8177d75db24236923e6ad2 (patch)
tree9974bdd19b575596165cdc4f9e1d8ae27a3b4c62 /Source/Core/AudioCommon/AudioCommon.cpp
parent9b8296d5ab2f8d57ff393d802b24c2e344d1cd39 (diff)
Don't cast -1 to enum to represent a missing value.
This is undefined behavior in C++, and a clang warning suggests it is actually producing bad code as a result: ../Source/Core/VideoCommon/BPFunctions.cpp:164:45: warning: comparison of constant 4294967295 with expression of type 'PEControl::PixelFormat' is always false [-Wtautological-constant-out-of-range-compare] if (new_format == old_format || old_format == (unsigned int)-1)
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
0 files changed, 0 insertions, 0 deletions