Index: include/core/SkColorTable.h |
diff --git a/include/core/SkColorTable.h b/include/core/SkColorTable.h |
index 00ef8548f6dbcb6bb9748c4d7517b54006f7dffa..cfd5110fe0f368a2e5263220e841109efea979d9 100644 |
--- a/include/core/SkColorTable.h |
+++ b/include/core/SkColorTable.h |
@@ -65,7 +65,7 @@ public: |
*/ |
void unlock16BitCache() { |
SkASSERT(f16BitCacheLockCount > 0); |
- SkDEBUGCODE(f16BitCacheLockCount -= 1); |
+ SkDEBUGCODE(sk_atomic_dec(&f16BitCacheLockCount);) |
} |
explicit SkColorTable(SkReadBuffer&); |