pgsql: Change float{4,8}in_internal take const char * input argument

Started by Peter Eisentrautabout 1 month ago1 messagescommitters
Jump to latest
#1Peter Eisentraut
peter@eisentraut.org

Change float{4,8}in_internal take const char * input argument

This makes the function signature match strtof()/strtod().

A caller then doesn't have to cast away a const anymore.

Reviewed-by: Rui Zhao <zhaorui126@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de> (older version)
Discussion: /messages/by-id/c76b72dd-5736-453a-b698-6968d42e4768@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2db51901c48e44369f5e6f209a65983c206075da

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 2 +-
src/backend/utils/adt/float.c | 19 ++++++++-----------
src/include/utils/float.h | 4 ++--
3 files changed, 11 insertions(+), 14 deletions(-)