Skip to content

Commit

Permalink
Fix filedelta type in fd_seek
Browse files Browse the repository at this point in the history
Signed-off-by: Ádám Kulcsár <[email protected]>
  • Loading branch information
kulcsaradam committed Jan 7, 2025
1 parent acf00db commit d23fea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasi/WASI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void WASI::fd_prestat_dir_name(ExecutionState& state, Value* argv, Value* result
void WASI::fd_seek(ExecutionState& state, Value* argv, Value* result, Instance* instance)
{
uint32_t fd = argv[0].asI32();
uint64_t fileDelta = argv[1].asI32();
uint64_t fileDelta = argv[1].asI64();
uint32_t whence = argv[2].asI32();
uvwasi_filesize_t* file_size = reinterpret_cast<uvwasi_filesize_t*>(get_memory_pointer(instance, argv[3], sizeof(uvwasi_filesize_t)));

Expand Down

0 comments on commit d23fea5

Please sign in to comment.