projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not crash on alignof($TYPE).
[cparser]
/
diagnostic.c
diff --git
a/diagnostic.c
b/diagnostic.c
index
65e0de2
..
babdf9d
100644
(file)
--- a/
diagnostic.c
+++ b/
diagnostic.c
@@
-66,6
+66,12
@@
static void diagnosticvf(const char *const fmt, va_list ap)
fputc(*f, stderr);
break;
+ case 'C': {
+ const wint_t val = va_arg(ap, wint_t);
+ fprintf(stderr, "%lc", val);
+ break;
+ }
+
case 'c': {
const unsigned char val = (unsigned char) va_arg(ap, int);
fputc(val, stderr);