summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-30 23:37:41 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-30 23:37:41 (GMT)
commit7a6d7cf3db49563132532529839fa82408444d89 (patch)
tree794d1e95c115e571aea015210fb31467ff211f8e /Modules
parent56cb12542d7ea5c95b9483e3db69388bcbc2ffbb (diff)
downloadcpython-7a6d7cf3db49563132532529839fa82408444d89.zip
cpython-7a6d7cf3db49563132532529839fa82408444d89.tar.gz
cpython-7a6d7cf3db49563132532529839fa82408444d89.tar.bz2
Issue #9566: Use the right type to fix a compiler warnings on Win64
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sre.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index cb1f791..a8e8a67 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -1865,7 +1865,7 @@ static PyObject*
pattern_match(PatternObject* self, PyObject* args, PyObject* kw)
{
SRE_STATE state;
- int status;
+ Py_ssize_t status;
PyObject* string;
Py_ssize_t start = 0;
@@ -2034,7 +2034,7 @@ pattern_findall(PatternObject* self, PyObject* args, PyObject* kw)
{
SRE_STATE state;
PyObject* list;
- int status;
+ Py_ssize_t status;
Py_ssize_t i, b, e;
PyObject* string;
@@ -2160,7 +2160,7 @@ pattern_split(PatternObject* self, PyObject* args, PyObject* kw)
SRE_STATE state;
PyObject* list;
PyObject* item;
- int status;
+ Py_ssize_t status;
Py_ssize_t n;
Py_ssize_t i;
void* last;
@@ -2276,7 +2276,7 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
PyObject* args;
PyObject* match;
void* ptr;
- int status;
+ Py_ssize_t status;
Py_ssize_t n;
Py_ssize_t i, b, e;
int logical_charsize, charsize;
@@ -2295,7 +2295,7 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
ptr = getstring(ptemplate, &n, &logical_charsize, &charsize, &view);
b = charsize;
if (ptr) {
- literal = sre_literal_template(b, ptr, n);
+ literal = sre_literal_template(charsize, ptr, n);
} else {
PyErr_Clear();
literal = 0;
@@ -3721,7 +3721,7 @@ scanner_match(ScannerObject* self, PyObject *unused)
{
SRE_STATE* state = &self->state;
PyObject* match;
- int status;
+ Py_ssize_t status;
state_reset(state);
@@ -3752,7 +3752,7 @@ scanner_search(ScannerObject* self, PyObject *unused)
{
SRE_STATE* state = &self->state;
PyObject* match;
- int status;
+ Py_ssize_t status;
state_reset(state);