From 24e2d102699bf91d4e5ec2c0bfa6a01f6aed2c83 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 24 Feb 2007 03:23:45 -0800 Subject: [PATCH] Fix sizeof for dotted (cimported) types --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.26.2