[Mesa-dev] [PATCH 2/2] gallium/targets: Haiku, Fix some improper type warnings

Alexander von Gluck IV kallisti5 at unixzen.com
Thu Aug 21 13:02:33 PDT 2014


---
 .../targets/haiku-softpipe/GalliumFramebuffer.cpp  |    2 +-
 .../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 f367d9d..84c8bd2 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 9d85b8d..0ae9e52 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);
-- 
1.7.1



More information about the mesa-dev mailing list