Changeset: bef2f6636882 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/bef2f6636882
Modified Files:
gdk/gdk_bbp.c
Branch: Dec2023
Log Message:
%o format expects an unsigned integer.
diffs (12 lines):
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -4114,7 +4114,7 @@ BBPsync(int cnt, bat *restrict subcommit
* are in the BACKUP directory to the SUBCOMMIT
* directory */
char fname[16]; /* plenty big enough */
- if (snprintf(fname, sizeof(fname), "%o", i) < 16) {
+ if (snprintf(fname, sizeof(fname), "%o", (unsigned) i)
< 16) {
/* the snprintf never fails, any of the
* below may fail */
if (GDKmove(0, BAKDIR, fname, "tail", SUBDIR,
fname, "tail", false) == GDK_SUCCEED)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]