diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-01-16 01:53:11 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-01-16 01:53:11 -0800 |
commit | 899b2a2a06a5febb3707170cb90c09b3417fd9f6 (patch) | |
tree | 3b05ff3bb9c674f7bf4851abf6cd65c382ade209 /struct.c | |
parent | 7b807746cd98b883d16865b755f320c6579d06e1 (diff) | |
download | txr-899b2a2a06a5febb3707170cb90c09b3417fd9f6.tar.gz txr-899b2a2a06a5febb3707170cb90c09b3417fd9f6.tar.bz2 txr-899b2a2a06a5febb3707170cb90c09b3417fd9f6.zip |
bugfix: supertype check in make-struct-type.
* struct.c (make_struct_type): Fix test of incorrect variable
which renders the supertype test useless, causing the type
to be created with no supertype.
Diffstat (limited to 'struct.c')
-rw-r--r-- | struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ val make_struct_type(val name, val super, if (super && symbolp(super)) { val supertype = find_struct_type(super); - if (!super) + if (!supertype) no_such_struct(self, super); super = supertype; } else if (super) { |