Commit ae2d8aff authored by cjgibson's avatar cjgibson

Simple correction, self.start.pos -> self.stop.pos.

parent 49e6b1f3
...@@ -4808,30 +4808,30 @@ class SliceIndexNode(ExprNode): ...@@ -4808,30 +4808,30 @@ class SliceIndexNode(ExprNode):
# if (__pyx_v_VARNAME == Py_None) { __pyx_t_TMPIDX = PY_SSIZE_T_MAX; } else { __pyx_t_TMPIDX = __Pyx_PyIndex_AsSsize_t(__pyx_v_VARNAME); } # if (__pyx_v_VARNAME == Py_None) { __pyx_t_TMPIDX = PY_SSIZE_T_MAX; } else { __pyx_t_TMPIDX = __Pyx_PyIndex_AsSsize_t(__pyx_v_VARNAME); }
c_int = PyrexTypes.c_py_ssize_t_type c_int = PyrexTypes.c_py_ssize_t_type
if self.start: if self.start:
# self.start = CondExprNode( self.start = CondExprNode(
# self.start.pos, self.start.pos,
# true_val = IntNode(self.start.pos, value = '0'), true_val = IntNode(self.start.pos, value = '0'),
# false_val = self.start, false_val = self.start,
# test = PrimaryCmpNode( test = PrimaryCmpNode(
# self.start.pos, self.start.pos,
# operand1 = self.start, operand1 = self.start,
# operator = 'is', operator = '==',
# operand2 = NoneNode(self.pos) operand2 = NoneNode(self.start.pos)
# ) )
# ) )
self.start = self.start.coerce_to(c_int, env) self.start = self.start.coerce_to(c_int, env)
if self.stop: if self.stop:
# self.stop = CondExprNode( self.stop = CondExprNode(
# self.stop.pos, self.stop.pos,
# true_val = IntNode(self.start.pos, value = 'PY_SSIZE_T_MAX'), true_val = IntNode(self.stop.pos, value = 'PY_SSIZE_T_MAX'),
# false_val = self.stop, false_val = self.stop,
# test = PrimaryCmpNode( test = PrimaryCmpNode(
# self.stop.pos, self.stop.pos,
# operand1 = self.stop, operand1 = self.stop,
# operator = 'is', operator = '==',
# operand2 = NoneNode(self.pos) operand2 = NoneNode(self.stop.pos)
# ) )
# ) )
self.stop = self.stop.coerce_to(c_int, env) self.stop = self.stop.coerce_to(c_int, env)
self.is_temp = 1 self.is_temp = 1
return self return self
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment