[waffle] [PATCH 2/2] core/tests: silence the final MSVC warning

Emil Velikov emil.l.velikov at gmail.com
Wed Aug 20 04:54:25 PDT 2014


Avoid forcing intptr_t down a variable of type int.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 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



More information about the waffle mailing list