Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Delta Between Two Patch Sets: Objects/rangeobject.c

Issue 28376: assertion failure in rangeobject.c
Left Patch Set: Created 3 years, 4 months ago
Right Patch Set: Created 3 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_range.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* Range object implementation */ 1 /* Range object implementation */
2 2
3 #include "Python.h" 3 #include "Python.h"
4 #include "structmember.h" 4 #include "structmember.h"
5 5
6 /* Support objects whose length is > PY_SSIZE_T_MAX. 6 /* Support objects whose length is > PY_SSIZE_T_MAX.
7 7
8 This could be sped up for small PyLongs if they fit in a Py_ssize_t. 8 This could be sped up for small PyLongs if they fit in a Py_ssize_t.
9 This only matters on Win64. Though we could use long long which 9 This only matters on Win64. Though we could use long long which
10 would presumably help perf. 10 would presumably help perf.
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 it->index = PyLong_FromLong(0); 1278 it->index = PyLong_FromLong(0);
1279 if (!it->index) 1279 if (!it->index)
1280 goto create_failure; 1280 goto create_failure;
1281 1281
1282 return (PyObject *)it; 1282 return (PyObject *)it;
1283 1283
1284 create_failure: 1284 create_failure:
1285 Py_DECREF(it); 1285 Py_DECREF(it);
1286 return NULL; 1286 return NULL;
1287 } 1287 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+