Skip to content

Commit

Permalink
Fix SaveData#extend() parameter indicies
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 29, 2024
1 parent e9ffe16 commit 1cd3251
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-candles-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nx.js/runtime": patch
---

Fix `SaveData#extend()` parameter indicies
4 changes: 2 additions & 2 deletions source/fsdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ static JSValue nx_save_data_extend(JSContext *ctx, JSValueConst this_val,
s64 journal_size;
nx_save_data_t *save_data =
JS_GetOpaque2(ctx, this_val, nx_save_data_class_id);
if (!save_data || JS_ToBigInt64(ctx, &data_size, argv[2]) ||
JS_ToBigInt64(ctx, &journal_size, argv[3])) {
if (!save_data || JS_ToBigInt64(ctx, &data_size, argv[0]) ||
JS_ToBigInt64(ctx, &journal_size, argv[1])) {
return JS_EXCEPTION;
}
Result rc = fsExtendSaveDataFileSystem(save_data->info.save_data_space_id,
Expand Down

0 comments on commit 1cd3251

Please sign in to comment.