| Index: runtime/vm/atomic_win.h
|
| diff --git a/runtime/vm/atomic_win.h b/runtime/vm/atomic_win.h
|
| index 33b7b10ddb3c35cf5142875693bb9882433ae3d1..410c1a2bf1986a7e7d5a3c11f485607266501ff2 100644
|
| --- a/runtime/vm/atomic_win.h
|
| +++ b/runtime/vm/atomic_win.h
|
| @@ -37,7 +37,7 @@ inline uintptr_t AtomicOperations::FetchAndIncrementBy(intptr_t* p,
|
| #elif defined(HOST_ARCH_IA32)
|
| return static_cast<uintptr_t>(
|
| InterlockedAdd(reinterpret_cast<LONG*>(p),
|
| - static_cast<LONGLONG>(value))) - value;
|
| + static_cast<LONG>(value))) - value;
|
| #else
|
| #error Unsupported host architecture.
|
| #endif
|
| @@ -66,7 +66,7 @@ inline uintptr_t AtomicOperations::FetchAndDecrementBy(intptr_t* p,
|
| #elif defined(HOST_ARCH_IA32)
|
| return static_cast<uintptr_t>(
|
| InterlockedAdd(reinterpret_cast<LONG*>(p),
|
| - static_cast<LONGLONG>(-value))) + value;
|
| + static_cast<LONG>(-value))) + value;
|
| #else
|
| #error Unsupported host architecture.
|
| #endif
|
|
|