[Mesa-dev] [PATCH kmscube 2/7] cube-tex.c: fix signed comparison
Eric Engestrom
eric.engestrom at imgtec.com
Tue Mar 14 13:33:52 UTC 2017
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
cube-tex.c | 6 +++---
1 file 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);
}
--
Cheers,
Eric
More information about the mesa-dev
mailing list