mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-04-17 12:41:40 +00:00
Fix an invalid cast in PostfixEvaluator<ValueType>::EvaluateInternal().
This patch fixes a compilation error with gcc / clang on Linux / Mac OS. BUG=none TEST=Tested the following: 1. Build on 32-bit and 64-bit Linux with gcc 4.4.3 and gcc 4.6. 2. Build on Mac OS X 10.6.8 with gcc 4.2 and clang 3.0 (with latest gmock). 3. All unit tests pass. Patch by Ben Chan <benchan@chromium.org> git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@924 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
f2e937f1cb
commit
7caf87236a
|
@ -131,7 +131,7 @@ bool PostfixEvaluator<ValueType>::EvaluateInternal(
|
|||
break;
|
||||
case BINARY_OP_ALIGN:
|
||||
result =
|
||||
operand1 & (reinterpret_cast<ValueType>(-1) ^ (operand2 - 1));
|
||||
operand1 & (static_cast<ValueType>(-1) ^ (operand2 - 1));
|
||||
break;
|
||||
case BINARY_OP_NONE:
|
||||
// This will not happen, but compilers will want a default or
|
||||
|
|
Loading…
Reference in a new issue