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[] = {
1717
1717
static void
1718
1718
lua_pushrandom (lua_State *L, FuzzedDataProvider *fdp)
1719
1719
{
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
+
1721
1722
push_func[idx](L, fdp);
1722
1723
1723
1724
bool is_set_mt = fdp->ConsumeBool ();
@@ -1903,7 +1904,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
1903
1904
fdp.remaining_bytes () != 0 ) {
1904
1905
__lua_gc (L, &fdp);
1905
1906
__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 );
1907
1908
func[idx](L, &fdp);
1908
1909
}
1909
1910
You can’t perform that action at this time.
0 commit comments