Remove one use of pg_atoi()

There was no real need to use this here instead of a simpler API.

Reviewed-by: John Naylor <john.naylor@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/b239564c-cad0-b23e-c57e-166d883cb97d@enterprisedb.com
This commit is contained in:
Peter Eisentraut 2022-02-14 21:29:45 +01:00
parent cfc7191dfe
commit b45fa79340

View File

@ -232,7 +232,7 @@ array_accessor:
;
any_level:
INT_P { $$ = pg_atoi($1.val, 4, 0); }
INT_P { $$ = pg_strtoint32($1.val); }
| LAST_P { $$ = -1; }
;