Make Visual Studio happy as it doesn't like variables declared after any code
has been executed.
This commit is contained in:
parent
324a4a8824
commit
489db58509
4
Error.c
4
Error.c
@ -83,6 +83,9 @@ static udt_Error *Error_New(
|
|||||||
ub4 handleType;
|
ub4 handleType;
|
||||||
dvoid *handle;
|
dvoid *handle;
|
||||||
sword status;
|
sword status;
|
||||||
|
#ifdef WITH_UNICODE
|
||||||
|
Py_ssize_t len;
|
||||||
|
#endif
|
||||||
|
|
||||||
error = PyObject_NEW(udt_Error, &g_ErrorType);
|
error = PyObject_NEW(udt_Error, &g_ErrorType);
|
||||||
if (!error)
|
if (!error)
|
||||||
@ -104,7 +107,6 @@ static udt_Error *Error_New(
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#ifdef WITH_UNICODE
|
#ifdef WITH_UNICODE
|
||||||
Py_ssize_t len;
|
|
||||||
for (len = 0; len < sizeof(errorText); len += 2) {
|
for (len = 0; len < sizeof(errorText); len += 2) {
|
||||||
if (errorText[len] == 0 && errorText[len + 1] == 0)
|
if (errorText[len] == 0 && errorText[len + 1] == 0)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user