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 | f5c2bc3c0849cb9c2698e5430884b6c2914a42ed (patch) | |
tree | c941b26d12ee6de96b90cff2092cb5fed41a736b | |
parent | 30ebbcc018565b46fd4db1bc138ac206a633a54d (diff) | |
download | txr-f5c2bc3c0849cb9c2698e5430884b6c2914a42ed.tar.gz txr-f5c2bc3c0849cb9c2698e5430884b6c2914a42ed.tar.bz2 txr-f5c2bc3c0849cb9c2698e5430884b6c2914a42ed.zip |
ffi: fix union printing as struct.
* ffi.c (ffi_type_compile): Syntax for union type wrongly
using struct symbol rather than union.
-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) { |