Content-Length: 261743 | pFad | http://github.com/postgrespro/postgres_cluster/commit/2b3031559a607833e4e265bb9726d52f398661e0

EB Fix GCC 7 snprintf() compiler warning. · postgrespro/postgres_cluster@2b30315 · GitHub
Skip to content

Commit 2b30315

Browse files
committed
Fix GCC 7 snprintf() compiler warning.
Make buffer 1 byte larger to fit a sign. It's actually impossible for there to be a sign in practice, but this is still required to keep GCC 7 happy. Cleanup from commit 51bc271. Based on a suggestion from Peter Eisentraut. Author: Peter Geoghegan Reported-By: Peter Eisentraut Discussion: https://postgr.es/m/d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com
1 parent cd5005b commit 2b30315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/modules/test_bloomfilter/test_bloomfilter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
PG_MODULE_MAGIC;
2020

21-
/* Must fit decimal representation of PG_INT64_MAX + 2 bytes: */
22-
#define MAX_ELEMENT_BYTES 20
21+
/* Fits decimal representation of PG_INT64_MIN + 2 bytes: */
22+
#define MAX_ELEMENT_BYTES 21
2323
/* False positive rate WARNING threshold (1%): */
2424
#define FPOSITIVE_THRESHOLD 0.01
2525

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/2b3031559a607833e4e265bb9726d52f398661e0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy