Fix for Ubuntu compiler complaint
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Jul 2013 18:33:39 +0000 (18:33 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 18 Jul 2013 18:33:39 +0000 (18:33 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@10151 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/gl/GrGLCreateNullInterface.cpp

index bca02eb..76307e4 100644 (file)
@@ -91,7 +91,7 @@ static void delete_buffer(GrBufferObj* buffer) {
 
     // Add this slot to the free list
     gBuffers[id] = gBuffers[0];
-    gBuffers[0] = SkTCast<GrBufferObj*>((const void*) id);
+    gBuffers[0] = SkTCast<GrBufferObj*>((const void*)(intptr_t)id);
 }
 
 GrGLvoid GR_GL_FUNCTION_TYPE nullGLActiveTexture(GrGLenum texture) {}