progs/tests: Silence fprintf format warning.
authorVinson Lee <vlee@vmware.com>
Tue, 12 Jan 2010 03:15:54 +0000 (19:15 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 12 Jan 2010 03:16:36 +0000 (19:16 -0800)
progs/tests/getprocaddress.c

index e699baf44bc0810be71725fd329e02c88e6ace14..38ca7000df24b081a2368ac5abda6975098fa25b 100644 (file)
@@ -660,8 +660,8 @@ exercise_CompressedTextures(GLenum dimension)
    glGetTexLevelParameteriv(dimension, 0, GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB, 
       &queryCompressedSize);
    if (queryCompressedSize != sizeof(compressedTexture)) {
-      fprintf(stderr, "%s: compressed 3D texture changed size: expected %d, actual %d\n",
-         __FUNCTION__, sizeof(compressedTexture), queryCompressedSize);
+      fprintf(stderr, "%s: compressed 3D texture changed size: expected %lu, actual %d\n",
+         __FUNCTION__, (unsigned long) sizeof(compressedTexture), queryCompressedSize);
       return GL_FALSE;
    }
    (*GetCompressedTexImageARB)(dimension, 0, queryCompressedData);