summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-05-01 15:40:49 +0100
committerJosé Fonseca <[email protected]>2014-05-02 22:04:46 +0100
commit605ef195aae0a419bc84d7f8d73ca37ad99c5927 (patch)
tree62f28f7f558db19f964f745fe69736949c19cfeb
parent42b9f8590d3002bc04b08397031b80e4a4d6e921 (diff)
st/vega: Prevent signed/unsigned comparisons.
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r--src/gallium/state_trackers/vega/vg_translate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/vega/vg_translate.c b/src/gallium/state_trackers/vega/vg_translate.c
index 7b3df277c3b..4aad8991bdd 100644
--- a/src/gallium/state_trackers/vega/vg_translate.c
+++ b/src/gallium/state_trackers/vega/vg_translate.c
@@ -34,7 +34,7 @@ void _vega_pack_rgba_span_float(struct vg_context *ctx,
VGImageFormat dstFormat,
void *dstAddr)
{
- VGint i;
+ VGuint i;
switch (dstFormat) {
case VG_sRGBX_8888: {
@@ -458,7 +458,7 @@ void _vega_unpack_float_span_rgba(struct vg_context *ctx,
VGImageFormat dataFormat,
VGfloat rgba[][4])
{
- VGint i;
+ VGuint i;
union util_color uc;
switch (dataFormat) {
@@ -681,7 +681,7 @@ void _vega_unpack_float_span_rgba(struct vg_context *ctx,
src += offset;
for (i = 0; i < n; i += 8) {
VGfloat clr[4];
- VGint j;
+ VGuint j;
for (j = 0; j < 8 && j < n ; ++j) {
VGint shift = j;
clr[0] = (((*src) & (1<<shift)) >> shift);
@@ -705,7 +705,7 @@ void _vega_unpack_float_span_rgba(struct vg_context *ctx,
src += offset;
for (i = 0; i < n; i += 8) {
VGfloat clr[4];
- VGint j;
+ VGuint j;
for (j = 0; j < 8 && j < n ; ++j) {
VGint shift = j;
clr[0] = 0.f;
@@ -728,7 +728,7 @@ void _vega_unpack_float_span_rgba(struct vg_context *ctx,
src += offset/2;
for (i = 0; i < n; i += 2) {
VGfloat clr[4];
- VGint j;
+ VGuint j;
for (j = 0; j < n && j < 2; ++j) {
VGint bitter, shift;
if (j == 0) {