Bug 887828 - GCC compilation failure in SkThread_win.cpp r=gwright
authorJacek Caban <jacek@codeweavers.com>
Thu, 18 Jul 2013 10:22:43 +0200
changeset 152206 1651ea86cb00e8c2754dcc720cf26724160d937f
parent 152205 2bac560565ec4f76e0530212505373f0d686a617
child 152207 ba5645d56898c8f096a8cb2f29c7bcfcf18871a7
push id382
push userakeybl@mozilla.com
push dateMon, 21 Oct 2013 21:47:13 +0000
treeherdermozilla-release@5f1868ee45cb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgwright
bugs887828
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 887828 - GCC compilation failure in SkThread_win.cpp r=gwright
gfx/skia/src/ports/SkThread_win.cpp
--- a/gfx/skia/src/ports/SkThread_win.cpp
+++ b/gfx/skia/src/ports/SkThread_win.cpp
@@ -31,17 +31,17 @@ int32_t sk_atomic_add(int32_t* addr, int
 
 int32_t sk_atomic_dec(int32_t* addr) {
     return _InterlockedDecrement(reinterpret_cast<LONG*>(addr)) + 1;
 }
 void sk_membar_aquire__after_atomic_dec() { }
 
 int32_t sk_atomic_conditional_inc(int32_t* addr) {
     while (true) {
-        LONG value = static_cast<LONG const volatile&>(*addr);
+        LONG value = static_cast<int32_t const volatile&>(*addr);
         if (value == 0) {
             return 0;
         }
         if (_InterlockedCompareExchange(reinterpret_cast<LONG*>(addr),
                                         value + 1,
                                         value) == value) {
             return value;
         }