fix name collision in list

This commit is contained in:
Andrew Kelley 2015-07-01 12:56:21 -07:00
parent 70e956abdf
commit 46b43356f9

View file

@ -61,12 +61,12 @@ struct SoundIoList {
return items[length - 1]; return items[length - 1];
} }
int __attribute__((warn_unused_result)) resize(int length) { int __attribute__((warn_unused_result)) resize(int new_length) {
assert(length >= 0); assert(new_length >= 0);
int err = ensure_capacity(length); int err = ensure_capacity(new_length);
if (err) if (err)
return err; return err;
length = length; length = new_length;
return 0; return 0;
} }