From: Robert Bradshaw Date: Sat, 24 Feb 2007 11:23:45 +0000 (-0800) Subject: Fix sizeof for dotted (cimported) types X-Git-Tag: 0.9.6.14~29^2~193 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=24e2d102699bf91d4e5ec2c0bfa6a01f6aed2c83;p=cython.git Fix sizeof for dotted (cimported) types --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 5ef8bfa1..c75ebee7 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -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,