projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1308e
)
Do not create bogus wide char initializer from char string, i.e. add missing break;.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 15 Dec 2008 14:36:54 +0000
(14:36 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 15 Dec 2008 14:36:54 +0000
(14:36 +0000)
[r24690]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
cca652e
..
a197607
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-2247,6
+2247,7
@@
static initializer_t *initializer_from_expression(type_t *orig_type,
return initializer_from_string(array_type,
&expression->string.value);
}
+ break;
case EXPR_WIDE_STRING_LITERAL: {
type_t *bare_wchar_type = skip_typeref(type_wchar_t);
@@
-2254,6
+2255,7
@@
static initializer_t *initializer_from_expression(type_t *orig_type,
return initializer_from_wide_string(array_type,
&expression->wide_string.value);
}
+ break;
}
default: