From 172daf175335417e0c6e9b7c8429e47a6e097de9 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 26 May 2010 21:41:40 -0700 Subject: [PATCH] Another IntNode fix. --- Cython/Compiler/ExprNodes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index ad266fd4..b2f3dfea 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -790,9 +790,10 @@ class IntNode(ConstNode): def __init__(self, pos, **kwds): ExprNode.__init__(self, pos, **kwds) - rank = max(1, len(self.longness)) - sign = not self.unsigned - self.type = PyrexTypes.modifiers_and_name_to_type[sign, rank, "int"] + if 'type' not in kwds: + rank = max(1, len(self.longness)) + sign = not self.unsigned + self.type = PyrexTypes.modifiers_and_name_to_type[sign, rank, "int"] def coerce_to(self, dst_type, env): if self.type is dst_type: -- 2.26.2