| Index: runtime/vm/simulator_mips.cc
|
| diff --git a/runtime/vm/simulator_mips.cc b/runtime/vm/simulator_mips.cc
|
| index f70e54b7ea4135bc63cd34d703c1eac5eddbaa34..f8007edac85e76716fbc1527e34c168b907030ba 100644
|
| --- a/runtime/vm/simulator_mips.cc
|
| +++ b/runtime/vm/simulator_mips.cc
|
| @@ -1194,8 +1194,10 @@ uword Simulator::CompareExchange(uword* address,
|
| uint32_t Simulator::CompareExchangeUint32(uint32_t* address,
|
| uint32_t compare_value,
|
| uint32_t new_value) {
|
| - ASSERT(sizeof(uword) == sizeof(uint32_t));
|
| - return CompareExchange(address, compare_value, new_value);
|
| + COMPILE_ASSERT(sizeof(uword) == sizeof(uint32_t));
|
| + return CompareExchange(reinterpret_cast<uword*>(address),
|
| + static_cast<uword>(compare_value),
|
| + static_cast<uword>(new_value));
|
| }
|
|
|
|
|
|
|