Revert of Fix SkAtomics_win.h typos. (https://codereview.chromium.org/293363017/)

Reason for revert:
depends on bad cl

Original issue's description:
> Fix SkAtomics_win.h typos.
>
> NOTRY=true
>
> BUG=skia:
>
> Committed: http://code.google.com/p/skia/source/detail?r=14930

R=mtklein@chromium.org
TBR=mtklein@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=skia:

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/304503011

git-svn-id: http://skia.googlecode.com/svn/trunk@14932 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2014-05-28 19:57:18 +00:00
parent a32260db15
commit 6640ee3378

View File

@ -41,7 +41,7 @@ static inline bool sk_atomic_cas(int32_t* addr, int32_t before, int32_t after) {
} }
static inline void* sk_atomic_cas(void** addr, void* before, void* after) { static inline void* sk_atomic_cas(void** addr, void* before, void* after) {
return InterlockedCompareExchangePointer(addr, after, before); return InterlockedCompareExchange(reinterpret_cast<long*>(addr), after, before);
} }
static inline void sk_membar_acquire__after_atomic_conditional_inc() { } static inline void sk_membar_acquire__after_atomic_conditional_inc() { }