Commit ebae142aa48a3b28ee331e656168f70a4471cbce

Anonymous Maarten 2022-10-06T01:05:59

testhaptic: fix conversion from `size_t` to `int` Emitted by MSVC

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testhaptic.c b/test/testhaptic.c
index 9b73ce2..34da19f 100644
--- a/test/testhaptic.c
+++ b/test/testhaptic.c
@@ -59,7 +59,7 @@ main(int argc, char **argv)
             return 0;
         }
 
-        i = SDL_strlen(name);
+        i = (int)SDL_strlen(name);
         if ((i < 3) && SDL_isdigit(name[0]) && ((i == 1) || SDL_isdigit(name[1]))) {
             index = SDL_atoi(name);
             name = NULL;