Răsfoiți Sursa

Fixed warning C4244: 'initializing': conversion from 'int' to 'const Uint8', possible loss of data

Sam Lantinga 1 an în urmă
părinte
comite
ff5fdf9f53
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      test/testautomation_guid.c

+ 1 - 1
test/testautomation_guid.c

@@ -117,7 +117,7 @@ TestGuidToString(void *arg)
 
         /* Serialise to limited-length buffers */
         for (size = 0; size <= 36; ++size) {
-            const Uint8 fill_char = size + 0xa0;
+            const Uint8 fill_char = (Uint8)(size + 0xa0);
             Uint32 expected_prefix;
             Uint32 actual_prefix;
             int written_size;