File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1717,7 +1717,8 @@ static lua_func push_func[] = {
17171717static void
17181718lua_pushrandom (lua_State *L, FuzzedDataProvider *fdp)
17191719{
1720- uint8_t idx = fdp->ConsumeIntegralInRange (0 , (int )ARRAY_SIZE (push_func) - 1 );
1720+ uint8_t idx = fdp->ConsumeIntegralInRange <uint8_t >(0 , ARRAY_SIZE (push_func) - 1 );
1721+
17211722 push_func[idx](L, fdp);
17221723
17231724 bool is_set_mt = fdp->ConsumeBool ();
@@ -1903,7 +1904,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
19031904 fdp.remaining_bytes () != 0 ) {
19041905 __lua_gc (L, &fdp);
19051906 __lua_sethook (L, &fdp);
1906- uint8_t idx = fdp.ConsumeIntegralInRange <uint8_t >(0 , ( int ) ARRAY_SIZE (func) - 1 );
1907+ uint8_t idx = fdp.ConsumeIntegralInRange <uint8_t >(0 , ARRAY_SIZE (func) - 1 );
19071908 func[idx](L, &fdp);
19081909 }
19091910
You can’t perform that action at this time.
0 commit comments