aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/oracle_compat.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-03-31 20:26:47 -0700
committerAndres Freund <andres@anarazel.de>2018-03-31 20:26:47 -0700
commit686d399f2be6eea4b74d59cdadd427d09cb0e246 (patch)
treeb78ce5f63b4d29aaaeffb3d217a77d5373deb989 /src/backend/utils/adt/oracle_compat.c
parent7f563c09f8901f6acd72cb8fba7b1bd3cf3aca8e (diff)
downloadpostgresql-686d399f2be6eea4b74d59cdadd427d09cb0e246.tar.gz
postgresql-686d399f2be6eea4b74d59cdadd427d09cb0e246.zip
Fix non-portable use of round().
round() is from C99. Use rint() instead. There are behavioral differences between round() and rint(), but they should not matter to the Bloom filter optimal_k() function. We already assume POSIX behavior for rint(), so there is no question of rint() not using "rounds towards nearest" as its rounding mode. Cleanup from commit 51bc271790eb234a1ba4d14d3e6530f70de92ab5. Per buildfarm member thrips. Author: Peter Geoghegan Discussion: https://postgr.es/m/CAH2-Wzn76eCGUonARy-wrVtMHsf+4cvbK_oJAWTLfORTU5ki0w@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/oracle_compat.c')
0 files changed, 0 insertions, 0 deletions