Fix sizeof for dotted (cimported) types
authorRobert Bradshaw <robertwb@math.washington.edu>
Sat, 24 Feb 2007 11:23:45 +0000 (03:23 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 24 Feb 2007 11:23:45 +0000 (03:23 -0800)
Cython/Compiler/Parsing.py

index 5ef8bfa1c5892338dd403c49ff6abe82cf7fb5af..c75ebee79652ca4cf24f39d53f94335ecf6acebd 100644 (file)
@@ -218,7 +218,7 @@ def p_sizeof(s):
     pos = s.position()
     s.next()
     s.expect('(')
-    if looking_at_type(s):
+    if looking_at_type(s) or looking_at_dotted_name(s):
         base_type = p_c_base_type(s)
         declarator = p_c_declarator(s, empty = 1)
         node = ExprNodes.SizeofTypeNode(pos,