From 46b43356f9c603c9606cb421d1a80936b87e7b45 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 1 Jul 2015 12:56:21 -0700 Subject: [PATCH] fix name collision in list --- src/list.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/list.hpp b/src/list.hpp index fc0da0d..53c0039 100644 --- a/src/list.hpp +++ b/src/list.hpp @@ -61,12 +61,12 @@ struct SoundIoList { return items[length - 1]; } - int __attribute__((warn_unused_result)) resize(int length) { - assert(length >= 0); - int err = ensure_capacity(length); + int __attribute__((warn_unused_result)) resize(int new_length) { + assert(new_length >= 0); + int err = ensure_capacity(new_length); if (err) return err; - length = length; + length = new_length; return 0; }