From 3cb474047bf21b553498f923838ada076c96425e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 8 Apr 2015 11:49:02 -0700 Subject: [PATCH] Fix potential shift by negative number. --- Core/MIPS/MIPSInt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/MIPSInt.cpp b/Core/MIPS/MIPSInt.cpp index 0830894781..bce16ba462 100644 --- a/Core/MIPS/MIPSInt.cpp +++ b/Core/MIPS/MIPSInt.cpp @@ -572,7 +572,7 @@ namespace MIPSInt { //TODO: verify int x = 31; int count=0; - while (!(R(rs) & (1<= 0) + while (x >= 0 && !(R(rs) & (1<= 0) + while (x >= 0 && (R(rs) & (1<