aboutsummaryrefslogtreecommitdiff
path: root/src/vec.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vec.hff')
-rw-r--r--src/vec.hff2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vec.hff b/src/vec.hff
index 2966579..4d877d8 100644
--- a/src/vec.hff
+++ b/src/vec.hff
@@ -38,7 +38,7 @@ struct Vec<T> {
fn move(vec *Vec, alloc *Allocator) [#]T {
let len = vec.len;
- let dat *T = alloc->alloc(len * sizeof T);
+ let dat *T = alloc->alloc(len * sizeof T, alignof T);
memcpy(dat, vec.dat, len * sizeof T);
vec->clear();
return dat[0::len];