Mercurial > projects > ldc
changeset 625:7e0a766fef47
Make typedef'ed complex types work.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 01 Oct 2008 19:15:17 +0200 |
parents | eb444ed4a2d3 |
children | e83ba4ae4878 |
files | gen/complex.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;