patch 8.2.0106: printf formats are not exactly right
Problem: Printf formats are not exactly right.
Solution: Adjust signed/unsigned conversions. (Frazer Clews, closes #5456)
diff --git a/src/libvterm/src/parser.c b/src/libvterm/src/parser.c
index 7d6d217..8a06c42 100644
--- a/src/libvterm/src/parser.c
+++ b/src/libvterm/src/parser.c
@@ -65,7 +65,7 @@
{
if(len > vt->parser.strbuffer_len - vt->parser.strbuffer_cur) {
len = vt->parser.strbuffer_len - vt->parser.strbuffer_cur;
- DEBUG_LOG1("Truncating strbuffer preserve to %zd bytes\n", len);
+ DEBUG_LOG1("Truncating strbuffer preserve to %zu bytes\n", len);
}
if(len > 0) {
diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c
index c55f693..d34599d 100644
--- a/src/libvterm/src/pen.c
+++ b/src/libvterm/src/pen.c
@@ -387,7 +387,7 @@
if (!done)
{
- DEBUG_LOG1("libvterm: Unhandled CSI SGR %lu\n", arg);
+ DEBUG_LOG1("libvterm: Unhandled CSI SGR %ld\n", arg);
}
while (CSI_ARG_HAS_MORE(args[argi++]))
diff --git a/src/ui.c b/src/ui.c
index f4f7bcf..151857f 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -1168,7 +1168,7 @@
cb->prev = cb->start;
#ifdef DEBUG_SELECTION
- printf("Selection started at (%u,%u)\n", cb->start.lnum, cb->start.col);
+ printf("Selection started at (%ld,%d)\n", cb->start.lnum, cb->start.col);
#endif
}
@@ -1203,7 +1203,7 @@
}
#ifdef DEBUG_SELECTION
- printf("Selection ended: (%u,%u) to (%u,%u)\n", cb->start.lnum,
+ printf("Selection ended: (%ld,%d) to (%ld,%d)\n", cb->start.lnum,
cb->start.col, cb->end.lnum, cb->end.col);
#endif
if (clip_isautosel_star()
@@ -1347,7 +1347,7 @@
cb->prev.col = col;
#ifdef DEBUG_SELECTION
- printf("Selection is: (%u,%u) to (%u,%u)\n", cb->start.lnum,
+ printf("Selection is: (%ld,%d) to (%ld,%d)\n", cb->start.lnum,
cb->start.col, cb->end.lnum, cb->end.col);
#endif
}
diff --git a/src/version.c b/src/version.c
index 1f54a4a..af80600 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 106,
+/**/
105,
/**/
104,