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 Your Name
parent 4fc0a85581
commit cc1c02e3de

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."