From: Robert Bradshaw Date: Thu, 27 May 2010 04:41:40 +0000 (-0700) Subject: Another IntNode fix. X-Git-Tag: 0.13.beta0~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=172daf175335417e0c6e9b7c8429e47a6e097de9;p=cython.git Another IntNode fix. --- 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: