From 5989e2d1c4fa997dc2dbd4ea331bf6e77a425aff Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 29 Feb 2012 19:01:54 +0100 Subject: mingw: use uintptr_t when converting a pointer to an int win64 uses 32 bit long, so we cannot use a long to hold a 64 bit pointer. Thankfully, there's a [u]intptr_t type available exactly for these uses. --- client/cursor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/cursor.cpp') diff --git a/client/cursor.cpp b/client/cursor.cpp index e9e3006d..0584b884 100644 --- a/client/cursor.cpp +++ b/client/cursor.cpp @@ -64,7 +64,7 @@ CursorData::CursorData(SpiceCursor& cursor, int data_size) } if (data_size < expected_size) { - THROW("access violation 0x%lx %u", (unsigned long)cursor.data, expected_size); + THROW("access violation 0x%lx %u", (uintptr_t)cursor.data, expected_size); } _data = new uint8_t[expected_size]; memcpy(_data, cursor.data, expected_size); -- cgit