Fix typo in JIT.

This commit is contained in:
Andy Nguyen 2021-10-29 21:46:55 +02:00
parent 0818b13b23
commit 57233f4a72
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ public final class JIT {
for (long i = dataSectionOffset; i < file.length(); i += CHUNK_SIZE) {
api.memset(chunk, 0, CHUNK_SIZE);
file.seek(dataSectionOffset);
file.seek(i);
int read = file.read(chunk, 0, (int) Math.min(file.length() - i, CHUNK_SIZE));
api.memcpy(address + i, chunk, read);