From 0afc6bb1b4ee0942c6b72e889653f96b822ec83c Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Thu, 20 Jun 2013 17:54:26 +0000 Subject: Fixed invalid cast on mingw. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes GCC error: SkThread_win.cpp:39:61: error: invalid static_cast from type ‘int32_t {aka int}’ to type ‘const volatile LONG& {aka const volatile long int&}’ Review URL: https://codereview.chromium.org/17047004 git-svn-id: http://skia.googlecode.com/svn/trunk@9706 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/ports/SkThread_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ports/SkThread_win.cpp b/src/ports/SkThread_win.cpp index bc038b2289..c69fc4506d 100644 --- a/src/ports/SkThread_win.cpp +++ b/src/ports/SkThread_win.cpp @@ -36,7 +36,7 @@ void sk_membar_aquire__after_atomic_dec() { } int32_t sk_atomic_conditional_inc(int32_t* addr) { while (true) { - LONG value = static_cast(*addr); + LONG value = static_cast(*addr); if (value == 0) { return 0; } -- cgit v1.2.3