summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2017-03-14 12:18:18 +0000
committerEric Engestrom <eric.engestrom@imgtec.com>2017-03-15 11:54:21 +0000
commitce03463d07e0af7aa113aa7660cf3c2ce6a35853 (patch)
tree97c358a12df8af172f8000c052fbff156c5058c4
parent5214743763c1bb226a727cc8dd47e0338c18ec0e (diff)
cube-tex.c: fix signed comparison
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--cube-tex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cube-tex.c b/cube-tex.c
index 1e7741d..a543e83 100644
--- a/cube-tex.c
+++ b/cube-tex.c
@@ -227,7 +227,7 @@ static int get_fd_rgba(uint32_t *pstride)
map = gbm_bo_map(bo, 0, 0, texw, texh, GBM_BO_TRANSFER_WRITE, &stride, &map_data);
- for (int i = 0; i < texh; i++) {
+ for (uint32_t i = 0; i < texh; i++) {
memcpy(&map[stride * i], &src[texw * 4 * i], texw * 4);
}
@@ -258,7 +258,7 @@ static int get_fd_y(uint32_t *pstride)
map = gbm_bo_map(bo, 0, 0, texw/4, texh, GBM_BO_TRANSFER_WRITE, &stride, &map_data);
- for (int i = 0; i < texh; i++) {
+ for (uint32_t i = 0; i < texh; i++) {
memcpy(&map[stride * i], &src[texw * i], texw);
}
@@ -289,7 +289,7 @@ static int get_fd_uv(uint32_t *pstride)
map = gbm_bo_map(bo, 0, 0, texw/2/2, texh/2, GBM_BO_TRANSFER_WRITE, &stride, &map_data);
- for (int i = 0; i < texh/2; i++) {
+ for (uint32_t i = 0; i < texh/2; i++) {
memcpy(&map[stride * i], &src[texw * i], texw);
}