From 0becb8b2d7d1baf622fddc0045eb6346a60be1fb Mon Sep 17 00:00:00 2001 From: Vitaly Davydov Date: Sun, 13 Aug 2023 23:21:00 +0300 Subject: [PATCH] Fix warnings in output.c --- src/output.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/output.c b/src/output.c index 60e7464..7598d46 100644 --- a/src/output.c +++ b/src/output.c @@ -21,7 +21,11 @@ * Default is radians. */ static unsigned char sphere_output = OUTPUT_RAD; -static short int sphere_output_precision = DBL_DIG; + +/* + * Defines the precision of floating point values in output. + */ +static int sphere_output_precision = DBL_DIG; PG_FUNCTION_INFO_V1(set_sphere_output); PG_FUNCTION_INFO_V1(spherepoint_out);