ensuring both arguments to max are the same type
git-svn-id: svn://10.0.0.236/trunk@70125 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -358,7 +358,7 @@ void JS::BigInt::allocate(uint lgGrossSize)
|
||||
FREE_DTOA_LOCK(0);
|
||||
} else {
|
||||
FREE_DTOA_LOCK(0);
|
||||
w = static_cast<uint32 *>(STD::malloc(max(grossSize*sizeof(uint32), uint32(sizeof(uint32 *)))));
|
||||
w = static_cast<uint32 *>(STD::malloc(max(uint32(grossSize*sizeof(uint32)), uint32(sizeof(uint32 *)))));
|
||||
if (!w) {
|
||||
std::bad_alloc outOfMemory;
|
||||
throw outOfMemory;
|
||||
|
||||
@@ -358,7 +358,7 @@ void JS::BigInt::allocate(uint lgGrossSize)
|
||||
FREE_DTOA_LOCK(0);
|
||||
} else {
|
||||
FREE_DTOA_LOCK(0);
|
||||
w = static_cast<uint32 *>(STD::malloc(max(grossSize*sizeof(uint32), uint32(sizeof(uint32 *)))));
|
||||
w = static_cast<uint32 *>(STD::malloc(max(uint32(grossSize*sizeof(uint32)), uint32(sizeof(uint32 *)))));
|
||||
if (!w) {
|
||||
std::bad_alloc outOfMemory;
|
||||
throw outOfMemory;
|
||||
|
||||
Reference in New Issue
Block a user