Skip to content

Commit 1882c07

Browse files
authored
Merge pull request #149 from hoefling/py27-fix-var-declaration
Fix build error for Python 2.7 on Appveyor
2 parents ea86e02 + f3bcec9 commit 1882c07

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,14 @@ static char PyXmlSec_PyBase64DefaultLineSize__doc__[] = \
138138
static PyObject* PyXmlSec_PyBase64DefaultLineSize(PyObject *self, PyObject *args, PyObject *kwargs) {
139139
static char *kwlist[] = { "size", NULL };
140140
PyObject *pySize = NULL;
141+
int size;
141142
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|O:base64_default_line_size", kwlist, &pySize)) {
142143
return NULL;
143144
}
144145
if (pySize == NULL) {
145146
return PyLong_FromLong(xmlSecBase64GetDefaultLineSize());
146147
}
147-
int size = (int)PyLong_AsLong(pySize);
148+
size = (int)PyLong_AsLong(pySize);
148149
if (PyErr_Occurred()) {
149150
return NULL;
150151
}

0 commit comments

Comments
 (0)