aboutsummaryrefslogtreecommitdiff
path: root/src/list.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-09-19 17:02:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-09-19 17:02:32 -0400
commit8a30edcde82dfcd36c3eec2fb7bcd5af549325cf (patch)
tree9d45053a816d85e72daee5c168a20259be585871 /src/list.hpp
parent5e34fb35972b8ff2ec0a420779b689229d05c659 (diff)
parent925ffbce7f424548be9eb42eb3914d5035066003 (diff)
downloadzig-8a30edcde82dfcd36c3eec2fb7bcd5af549325cf.tar.gz
zig-8a30edcde82dfcd36c3eec2fb7bcd5af549325cf.zip
Merge remote-tracking branch 'origin/master' into llvm9
Diffstat (limited to 'src/list.hpp')
-rw-r--r--src/list.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.hpp b/src/list.hpp
index 8dce75f2b8..59782b46a8 100644
--- a/src/list.hpp
+++ b/src/list.hpp
@@ -15,7 +15,7 @@ struct ZigList {
void deinit() {
free(items);
}
- void append(T item) {
+ void append(const T& item) {
ensure_capacity(length + 1);
items[length++] = item;
}