Windows build fix.
authormrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Dec 2007 09:25:27 +0000 (09:25 +0000)
committermrowe@apple.com <mrowe@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Dec 2007 09:25:27 +0000 (09:25 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28992 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/Threading.h

index fabd5ae..d036e14 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-26  Mark Rowe  <mrowe@apple.com>
+
+        Windows build fix.
+
+        * platform/Threading.h:
+
 2007-12-25  Rob Buis  <buis@kde.org>
 
         Reviewed by Eric.
index bda16fa..08981b6 100644 (file)
@@ -160,8 +160,8 @@ private:
 #if PLATFORM(WIN_OS)
 #define WTF_USE_LOCKFREE_THREADSAFESHARED 1
 
-inline void atomicIncrement(int volatile* addened) { InterlockedIncrement(addened); }
-inline int atomicDecrement(int volatile* addened) { return InterlockedDecrement(addened); }
+inline void atomicIncrement(int volatile* addened) { InterlockedIncrement(reinterpret_cast<long volatile*>(addened)); }
+inline int atomicDecrement(int volatile* addened) { return InterlockedDecrement(reinterpret_cast<long volatile*>(addened)); }
 
 #elif COMPILER(GCC) && (PLATFORM(X86) || PLATFORM(X86_64) || PLATFORM(PPC) || PLATFORM(PPC64))
 #define WTF_USE_LOCKFREE_THREADSAFESHARED 1