From 12a679a6f61259d833b0d9098b9f6e2607611cc6 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV <kallisti5@unixzen.com> Date: Thu, 21 Aug 2014 20:00:59 +0000 Subject: gallium/targets: Haiku, Fix some improper type warnings --- src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp | 2 +- src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp b/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp index f367d9d12d8..84c8bd2baef 100644 --- a/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp +++ b/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp @@ -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; diff --git a/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp b/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp index 9d85b8d03e2..0ae9e5260a1 100644 --- a/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp +++ b/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp @@ -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); -- cgit v1.2.3