diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 06:38:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-29 06:38:59 -0700 |
commit | 54563bdf9c33c75e69c1fdd3d99dea6eb7f4355a (patch) | |
tree | c941b26d12ee6de96b90cff2092cb5fed41a736b /ffi.c | |
parent | 5b4c120b9d1a1aae99d25f8f244261c6a3e39f09 (diff) | |
download | txr-54563bdf9c33c75e69c1fdd3d99dea6eb7f4355a.tar.gz txr-54563bdf9c33c75e69c1fdd3d99dea6eb7f4355a.tar.bz2 txr-54563bdf9c33c75e69c1fdd3d99dea6eb7f4355a.zip |
ffi: fix union printing as struct.
* ffi.c (ffi_type_compile): Syntax for union type wrongly
using struct symbol rather than union.
Diffstat (limited to 'ffi.c')
-rw-r--r-- | ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3277,7 +3277,7 @@ val ffi_type_compile(val syntax) val sname = if3(name, name, gensym(lit("ffi-union-"))); val types; val slots = ffi_struct_compile(membs, &types, self); - val xsyntax = cons(struct_s, + val xsyntax = cons(union_s, cons(sname, membs)); return make_ffi_type_union(xsyntax, union_s, slots, types); } else if (sym == array_s || sym == zarray_s) { |