[Mesa-dev] [PATCH 17/23] mesa/main/framebuffer.h: Fix one -Wsign-compare warning in ?: construct.
Gert Wollny
gw.fossdev at gmail.com
Sun Nov 12 13:55:49 UTC 2017
Explicitely convert on value to the target type.
---
src/mesa/main/framebuffer.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/framebuffer.h b/src/mesa/main/framebuffer.h
index bc6e7bc31a..bffa21dcea 100644
--- a/src/mesa/main/framebuffer.h
+++ b/src/mesa/main/framebuffer.h
@@ -93,7 +93,7 @@ static inline GLuint
_mesa_geometric_samples(const struct gl_framebuffer *buffer)
{
return buffer->_HasAttachments ?
- buffer->Visual.samples :
+ (GLuint)buffer->Visual.samples :
buffer->DefaultGeometry._NumSamples;
}
--
2.13.6
More information about the mesa-dev
mailing list