Skip to content

Commit

Permalink
avoid void * arithmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Apr 29, 2023
1 parent 6cf254c commit a84f1d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libwasi/wasi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,7 @@ wasi_random_get(struct exec_context *ctx, struct host_instance *hi,
}
break;
}
p += ssz;
p = (uint8_t *)p + ssz;
buflen -= ssz;
}
#else
Expand Down

0 comments on commit a84f1d0

Please sign in to comment.