Przeglądaj źródła

Add explicit cast

Frank Denis 9 lat temu
rodzic
commit
4473c4f25c
1 zmienionych plików z 1 dodań i 1 usunięć
  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 (j = 1; j < 100; j++) {
-            x = randombytes_uniform(j);
+            x = randombytes_uniform((uint32_t) j);
             assert(x < j);
         }
     }