Jit: Add parenthesis to fix expression
Yay compiler warnings. Boo failing to notice compiler warnings.
Change-Id: I8ec85e2898b1675105ebd593f2ff47a06e425802
diff --git a/vm/interp/Jit.c b/vm/interp/Jit.c
index c2430c2..4c28993 100644
--- a/vm/interp/Jit.c
+++ b/vm/interp/Jit.c
@@ -998,10 +998,11 @@
* alignment for method pointers, and half-word alignment of the Dalvik pc.
* for method pointers and half-word alignment for dalvik pc.
*/
- intptr_t filterKey = (intptr_t)((u4)interpState->method << (
- JIT_TRACE_THRESH_FILTER_PC_BITS - 2) |
- (((u4)interpState->pc >> 1) &
- (1 << JIT_TRACE_THRESH_FILTER_PC_BITS) - 1));
+ u4 methodKey = (u4)interpState->method <<
+ (JIT_TRACE_THRESH_FILTER_PC_BITS - 2);
+ u4 pcKey = ((u4)interpState->pc >> 1) &
+ ((1 << JIT_TRACE_THRESH_FILTER_PC_BITS) - 1);
+ intptr_t filterKey = (intptr_t)(methodKey | pcKey);
bool debugOrProfile = dvmDebuggerOrProfilerActive();
/* Check if the JIT request can be handled now */