summaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorS. Gilles <sgilles@umd.edu>2020-06-07 05:17:13 -0400
committerS. Gilles <sgilles@umd.edu>2020-06-11 05:09:59 -0400
commit58a13c39b7f3e6ab0bf950908e98b9f0dfb7c951 (patch)
treeec199127faf5557b8b0d410e928dca1a54b47c2e /lib/std
parentde1eabd91024f360845dfe7382581e0acbc368e1 (diff)
downloadmc-58a13c39b7f3e6ab0bf950908e98b9f0dfb7c951.tar.gz
Unify alignment for heterogeneous tuples.
This only appears to come into play when trying to match memory layout of tuples with structs, or when accessing deeply nested tuples.
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/varargs.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/varargs.myr b/lib/std/varargs.myr
index 90c2945..7a5e036 100644
--- a/lib/std/varargs.myr
+++ b/lib/std/varargs.myr
@@ -58,7 +58,7 @@ const vaenter = {ap
ty = vatype(ap)
match typedesc(ty)
| `Tyslice enc: -> [.args=sliceptr(ap.args), .tc=[.nelt=slicelen(ap.args), .rem=enc, .isiter=false]]
- | `Tytuple tc: -> [.args=ap.args, .tc=tc]
+ | `Tytuple tc: -> [.args=cursoralign(ap.args, ty), .tc=tc]
| `Tystruct tc: -> [.args=cursoralign(ap.args, ty), .tc=tc]
| `Tyarray (sz, enc): -> [.args=ap.args, .tc=[.nelt=sz, .rem=enc, .isiter=false]]
| `Tyname (name, enc): -> [.args=ap.args, .tc=typeenccursor(enc)]