From 1aea07b961d476fca0b90c32e1e91d883fd1cd8d Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 13 Jun 2014 07:13:06 -0400 Subject: [PATCH] Bug 1024836 - Fix compilation errors in RangeAnalysis.cpp with clang-cl; r=Waldo This is similar to bug 1021494. --- js/src/jit/RangeAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jit/RangeAnalysis.cpp b/js/src/jit/RangeAnalysis.cpp index 7fa995d492f4..2df93c75d137 100644 --- a/js/src/jit/RangeAnalysis.cpp +++ b/js/src/jit/RangeAnalysis.cpp @@ -916,9 +916,9 @@ Range::abs(TempAllocator &alloc, const Range *op) int32_t l = op->lower_; int32_t u = op->upper_; - return new(alloc) Range(Max(Max(int32_t(0), l), u == INT32_MIN ? INT32_MAX : -u), + return new(alloc) Range(Max(Max(int32_t(0), l), u == INT32_MIN ? int32_t(INT32_MAX) : -u), true, - Max(Max(int32_t(0), u), l == INT32_MIN ? INT32_MAX : -l), + Max(Max(int32_t(0), u), l == INT32_MIN ? int32_t(INT32_MAX) : -l), op->hasInt32Bounds() && l != INT32_MIN, op->canHaveFractionalPart_, op->max_exponent_);