projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5430770
)
scanf({"%c","%lc"}) requieres a pointer to {char,wchar_t}, not {int,wint_t}.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 8 Jul 2011 11:43:29 +0000
(13:43 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 8 Jul 2011 11:48:02 +0000
(13:48 +0200)
format_check.c
patch
|
blob
|
history
diff --git
a/format_check.c
b/format_check.c
index
9e991d8
..
39d2334
100644
(file)
--- a/
format_check.c
+++ b/
format_check.c
@@
-764,8
+764,8
@@
static void check_scanf_format(const call_argument_t *arg,
case 'c':
expected_type = type_int;
switch (fmt_mod) {
- case FMT_MOD_NONE: expected_type = type_
int; break; /* TODO promoted char */
- case FMT_MOD_l: expected_type = type_w
int_t;
break;
+ case FMT_MOD_NONE: expected_type = type_
char; break;
+ case FMT_MOD_l: expected_type = type_w
char_t;
break;
case FMT_MOD_w: expected_type = type_wchar_t; break;
default: