Explorar el Código

Add explicit cast

Frank Denis hace 9 años
padre
commit
4473c4f25c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/tests.c

+ 1 - 1
tests/tests.c

@@ -53,7 +53,7 @@ static void test_randombytes(void)
 
 
     for (i = 0; i < 1000; i++) {
     for (i = 0; i < 1000; i++) {
         for (j = 1; j < 100; j++) {
         for (j = 1; j < 100; j++) {
-            x = randombytes_uniform(j);
+            x = randombytes_uniform((uint32_t) j);
             assert(x < j);
             assert(x < j);
         }
         }
     }
     }