From 1ac5ff1fd75e04916bbbc95ac63d7717afa60e6c Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 13 Jan 2015 16:50:23 -0800 Subject: [PATCH] Update libdparse --- libdparse | 2 +- src/conversion/third.d | 2 +- src/semantic.d | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libdparse b/libdparse index 2022b76..f5c30c0 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 2022b769f751c835d4dd6f51642ca20753914579 +Subproject commit f5c30c0528a81cecaed731272747c9bbfb68a355 diff --git a/src/conversion/third.d b/src/conversion/third.d index 638ccda..737abda 100644 --- a/src/conversion/third.d +++ b/src/conversion/third.d @@ -308,7 +308,7 @@ private: ACSymbol* processSuffix(ACSymbol* symbol, const TypeSuffix suffix, const Type t) { - if (suffix.star) + if (suffix.star.type != tok!"") return symbol; if (suffix.array || suffix.type) { diff --git a/src/semantic.d b/src/semantic.d index d665ed5..758e0e1 100644 --- a/src/semantic.d +++ b/src/semantic.d @@ -112,7 +112,7 @@ static this() argptrType.type2 = allocate!Type2(Mallocator.it); argptrType.type2.builtinType = tok!"void"; TypeSuffix argptrTypeSuffix = allocate!TypeSuffix(Mallocator.it); - argptrTypeSuffix.star = true; + argptrTypeSuffix.star = Token(tok!"*"); argptrType.typeSuffixes = cast(TypeSuffix[]) Mallocator.it.allocate(TypeSuffix.sizeof); argptrType.typeSuffixes[0] = argptrTypeSuffix;