# HG changeset patch # User Christian Kamm # Date 1222881317 -7200 # Node ID 7e0a766fef474f07bea3b3d687effec541b00a67 # Parent eb444ed4a2d38e684ce112963e70e7fe7b6bdfe1 Make typedef'ed complex types work. diff -r eb444ed4a2d3 -r 7e0a766fef47 gen/complex.cpp --- a/gen/complex.cpp Wed Oct 01 19:15:01 2008 +0200 +++ b/gen/complex.cpp Wed Oct 01 19:15:17 2008 +0200 @@ -92,7 +92,7 @@ Type* baserety; Type* baseimty; - TY ty = to->ty; + TY ty = to->toBasetype()->ty; if (ty == Tcomplex32) { baserety = Type::tfloat32; baseimty = Type::timaginary32; @@ -136,7 +136,7 @@ Type* baserety; Type* baseimty; - TY ty = to->ty; + TY ty = to->toBasetype()->ty; if (ty == Tcomplex32) { baserety = Type::tfloat32; baseimty = Type::timaginary32;