diff options
author | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-03-14 12:18:18 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@imgtec.com> | 2017-03-15 11:54:21 +0000 |
commit | ce03463d07e0af7aa113aa7660cf3c2ce6a35853 (patch) | |
tree | 97c358a12df8af172f8000c052fbff156c5058c4 | |
parent | 5214743763c1bb226a727cc8dd47e0338c18ec0e (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |