diff --git a/mozilla/js/js2/numerics.cpp b/mozilla/js/js2/numerics.cpp index c94a7fd864e..58d4edbddf5 100644 --- a/mozilla/js/js2/numerics.cpp +++ b/mozilla/js/js2/numerics.cpp @@ -358,7 +358,7 @@ void JS::BigInt::allocate(uint lgGrossSize) FREE_DTOA_LOCK(0); } else { FREE_DTOA_LOCK(0); - w = static_cast(STD::malloc(max(grossSize*sizeof(uint32), uint32(sizeof(uint32 *))))); + w = static_cast(STD::malloc(max(uint32(grossSize*sizeof(uint32)), uint32(sizeof(uint32 *))))); if (!w) { std::bad_alloc outOfMemory; throw outOfMemory; diff --git a/mozilla/js2/src/numerics.cpp b/mozilla/js2/src/numerics.cpp index c94a7fd864e..58d4edbddf5 100644 --- a/mozilla/js2/src/numerics.cpp +++ b/mozilla/js2/src/numerics.cpp @@ -358,7 +358,7 @@ void JS::BigInt::allocate(uint lgGrossSize) FREE_DTOA_LOCK(0); } else { FREE_DTOA_LOCK(0); - w = static_cast(STD::malloc(max(grossSize*sizeof(uint32), uint32(sizeof(uint32 *))))); + w = static_cast(STD::malloc(max(uint32(grossSize*sizeof(uint32)), uint32(sizeof(uint32 *))))); if (!w) { std::bad_alloc outOfMemory; throw outOfMemory;