Fix ArrayList return types (#1679)

ArrayList.SetString and ArrayList.SetArray both have int return types but their methodmap natives use void.
This commit is contained in:
Corey D 2021-12-27 22:17:04 +11:00 committed by GitHub
parent 7d6eb2bd81
commit bf898dd45f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ methodmap ArrayList < Handle {
// @param value String value to set.
// @return Number of characters copied.
// @error Invalid index.
public native void SetString(int index, const char[] value);
public native int SetString(int index, const char[] value);
// Sets an array of cells in an array.
//
@ -169,7 +169,7 @@ methodmap ArrayList < Handle {
// blocksize. Otherwise, the size passed is used.
// @return Number of cells copied.
// @error Invalid index.
public native void SetArray(int index, const any[] values, int size=-1);
public native int SetArray(int index, const any[] values, int size=-1);
// 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."