git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd17880)
Fix compilation warning in ipci.c
Wed, 8 Sep 2021 05:22:52 +0000 (14:22 +0900)
Wed, 8 Sep 2021 05:22:52 +0000 (14:22 +0900)
A Size had better use %zu when printed.

Oversight in bd17880, per buildfarm member lapwing.


diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c
index 1a408ad77e5cdafb5e89fea0fec9cc54ac87907c..13f3926ff67e237dbf52244eaa15a4b5d39fe401 100644 (file)
--- a/src/backend/storage/ipc/ipci.c
+++ b/src/backend/storage/ipc/ipci.c
@@ -332,6 +332,6 @@ InitializeShmemGUCs(void)
*/
size_b = CalculateShmemSize(NULL);
size_mb = add_size(size_b, (1024 * 1024) - 1) / (1024 * 1024);
- sprintf(buf, "%lu", size_mb);
+ sprintf(buf, "%zu", size_mb);
SetConfigOption("shared_memory_size", buf, PGC_INTERNAL, PGC_S_OVERRIDE);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /