From 7caf87236af2a15579e71720598a538117cd6619 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Thu, 23 Feb 2012 18:44:45 +0000 Subject: Fix an invalid cast in PostfixEvaluator::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 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@924 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/postfix_evaluator-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processor/postfix_evaluator-inl.h b/src/processor/postfix_evaluator-inl.h index 22faf7b2..332ba1af 100644 --- a/src/processor/postfix_evaluator-inl.h +++ b/src/processor/postfix_evaluator-inl.h @@ -131,7 +131,7 @@ bool PostfixEvaluator::EvaluateInternal( break; case BINARY_OP_ALIGN: result = - operand1 & (reinterpret_cast(-1) ^ (operand2 - 1)); + operand1 & (static_cast(-1) ^ (operand2 - 1)); break; case BINARY_OP_NONE: // This will not happen, but compilers will want a default or -- cgit v1.2.1