mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Fixed always true comparaison
This commit is contained in:
parent
07e2c6a62f
commit
40a512fe46
|
@ -224,9 +224,9 @@ typecast_array_scan(const char *str, Py_ssize_t strlength,
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (state == ASCAN_END) {
|
else if (state == ASCAN_END) {
|
||||||
if (--stack_index < 0)
|
if (stack_index == 0)
|
||||||
return -1;
|
return -1;
|
||||||
array = stack[stack_index];
|
array = stack[--stack_index];
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (state == ASCAN_EOF)
|
else if (state == ASCAN_EOF)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user