Skip to content

Commit

Permalink
Fix wrong return
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikusch committed Aug 13, 2023
1 parent bb918f2 commit 0e6f001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/include/adt_array.inc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ methodmap ArrayList < Handle {
// (useful if the blocksize > 0).
// @return Number of characters copied.
// @error Invalid index.
public native void SetString(int index, const char[] value, int size=-1, int block=0);
public native int SetString(int index, const char[] value, int size=-1, int block=0);

// Sets an array of cells in an array.
//
Expand All @@ -179,7 +179,7 @@ methodmap ArrayList < Handle {
// (useful if the blocksize > 0).
// @return Number of cells copied.
// @error Invalid index.
public native void SetArray(int index, const any[] values, int size=-1, int block=0);
public native int SetArray(int index, const any[] values, int size=-1, int block=0);

// Shifts an array up. All array contents after and including the given
// index are shifted up by one, and the given index is then "free."
Expand Down

0 comments on commit 0e6f001

Please sign in to comment.