• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision4168 (tree)
Time2021-06-02 00:38:34
Authormagicant

Log Message

Pass values of correct type to printf

Change Summary

Incremental Difference

--- yash/trunk/makesignum.c (revision 4167)
+++ yash/trunk/makesignum.c (revision 4168)
@@ -1,6 +1,6 @@
11 /* Yash: yet another shell */
22 /* makesignum.c: outputs string for 'signum.h' contents */
3-/* (C) 2007-2009 magicant */
3+/* (C) 2007-2021 magicant */
44
55 /* This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -68,7 +68,7 @@
6868 for (const signal_T *s = signals; s->no; s++) {
6969 if (!sigismember(&ss, s->no)) {
7070 sigaddset(&ss, s->no);
71- wprintf(L" case SIG%-7s: return %zu;\n", s->name, v++);
71+ wprintf(L" case SIG%-7ls: return %zu;\n", s->name, v++);
7272 }
7373 }
7474
--- yash/trunk/variable.c (revision 4167)
+++ yash/trunk/variable.c (revision 4168)
@@ -1,6 +1,6 @@
11 /* Yash: yet another shell */
22 /* variable.c: deals with shell variables and parameters */
3-/* (C) 2007-2020 magicant */
3+/* (C) 2007-2021 magicant */
44
55 /* This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -1529,7 +1529,7 @@
15291529
15301530 switch (compopt->src[0]) {
15311531 case L'+':
1532- index = malloc_wprintf(L"+%zu", 0);
1532+ index = malloc_wprintf(L"+%zu", (size_t) 0);
15331533 break;
15341534 case L'-':
15351535 index = malloc_wprintf(L"-%zu", totalcount - 1);
Show on old repository browser