Avoid forcing intptr_t down a variable of type int.

Signed-off-by: Emil Velikov <[email protected]>
---
 src/waffle/core/wcore_error_unittest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/waffle/core/wcore_error_unittest.c 
b/src/waffle/core/wcore_error_unittest.c
index b63df3b..0ac667b 100644
--- a/src/waffle/core/wcore_error_unittest.c
+++ b/src/waffle/core/wcore_error_unittest.c
@@ -195,7 +195,7 @@ test_wcore_error_thread_local(void **state) {
     mtx_init(&mutex, mtx_plain);
     cnd_init(&cond);
 
-    for (intptr_t i = 0; i < NUM_THREADS; ++i) {
+    for (int i = 0; i < NUM_THREADS; ++i) {
         struct thread_arg *a = &thread_args[i];
         a->thread_id = i;
         a->mutex = &mutex;
-- 
2.0.2

_______________________________________________
waffle mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to