Updated comments [skip ci]

This commit is contained in:
Andrew Kane
2024-04-13 14:06:10 -07:00
parent c5c82bafda
commit 8f93d02c71
3 changed files with 9 additions and 3 deletions

View File

@@ -268,8 +268,11 @@ sparsevec_in(PG_FUNCTION_ARGS)
while (sparsevec_isspace(*stringEnd))
stringEnd++;
errno = 0;
pt = stringEnd;
errno = 0;
/* Use strtof like float4in to avoid a double-rounding problem */
/* Postgres sets LC_NUMERIC to C on startup */
value = strtof(pt, &stringEnd);
if (stringEnd == pt)