mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 03:26:37 +03:00
Fixed always true comparaison
This commit is contained in:
parent
cc951b5fbe
commit
64674787fd
|
@ -224,9 +224,9 @@ typecast_array_scan(const char *str, Py_ssize_t strlength,
|
|||
}
|
||||
|
||||
else if (state == ASCAN_END) {
|
||||
if (--stack_index < 0)
|
||||
if (stack_index == 0)
|
||||
return -1;
|
||||
array = stack[stack_index];
|
||||
array = stack[--stack_index];
|
||||
}
|
||||
|
||||
else if (state == ASCAN_EOF)
|
||||
|
|
Loading…
Reference in New Issue
Block a user