gallium/targets: Haiku, Fix some improper type warnings
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Thu, 21 Aug 2014 20:00:59 +0000 (20:00 +0000)
committerAlexander von Gluck IV <kallisti5@unixzen.com>
Fri, 22 Aug 2014 23:37:19 +0000 (19:37 -0400)
src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp
src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp

index f367d9d12d83896867a6c4d2386b6b82cedc5ec4..84c8bd2baef0c12aff26217fd1978a01ab24fc15 100644 (file)
@@ -93,7 +93,7 @@ hgl_framebuffer_validate(struct st_context_iface* stctx,
 
        if (context->stVisual && context->manager && context->manager->screen) {
                TRACE("%s: Updating resources\n", __func__);
-               int i;
+               unsigned i;
                for (i = 0; i < count; i++) {
                        enum pipe_format format = PIPE_FORMAT_NONE;
                        unsigned bind = 0;
index 9d85b8d03e2eeb5b1363753be0667d334f20a385..0ae9e5260a177068640136c132f76441af61d5c6 100644 (file)
@@ -355,7 +355,7 @@ SoftwareRenderer::_AllocateBitmap()
                return;
        }
 
-       TRACE("%s: New bitmap size: %d x %d\n", __func__,
+       TRACE("%s: New bitmap size: %ld x %ld\n", __func__,
                fBitmap->Bounds().IntegerWidth(), fBitmap->Bounds().IntegerHeight());
 
        fContextObj->ResizeViewport(fWidth, fHeight);