summary refs log tree commit diff stats
path: root/rod/c2nim/cparse.nim
diff options
context:
space:
mode:
Diffstat (limited to 'rod/c2nim/cparse.nim')
-rwxr-xr-xrod/c2nim/cparse.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/rod/c2nim/cparse.nim b/rod/c2nim/cparse.nim
index b637bfa61..f5e6c95f8 100755
--- a/rod/c2nim/cparse.nim
+++ b/rod/c2nim/cparse.nim
@@ -583,6 +583,7 @@ proc otherTypeDef(p: var TParser, section, typ: PNode) =
     name = skipIdent(p)
   else: 
     # typedef typ name;
+    t = typ
     name = skipIdent(p)
   t = parseTypeSuffix(p, t)
   addTypeDef(section, name, t)