Browse Source

testhaptic: fix conversion from `size_t` to `int`

Emitted by MSVC
Anonymous Maarten 2 năm trước cách đây
mục cha
commit
ebae142aa4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/testhaptic.c

+ 1 - 1
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;