From 129544d38c99b1a619a0e2010aa9a81c49e5a08f Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Wed, 28 May 2014 19:30:57 +0200 Subject: [PATCH] Bug 1014083: Align local slot count with StackAlignment; r=sunfish --- js/src/jit/LIR.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jit/LIR.h b/js/src/jit/LIR.h index a2d736a2dae..7a4105d18b0 100644 --- a/js/src/jit/LIR.h +++ b/js/src/jit/LIR.h @@ -1554,7 +1554,7 @@ class LIRGraph // Round to StackAlignment, but also round to at least sizeof(Value) in // case that's greater, because StackOffsetOfPassedArg rounds argument // slots to 8-byte boundaries. - size_t Alignment = Max(sizeof(StackAlignment), sizeof(Value)); + size_t Alignment = Max(size_t(StackAlignment), sizeof(Value)); return AlignBytes(localSlotCount(), Alignment); } size_t paddedLocalSlotsSize() const {