Do not create bogus wide char initializer from char string, i.e. add missing break;.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Dec 2008 14:36:54 +0000 (14:36 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Dec 2008 14:36:54 +0000 (14:36 +0000)
[r24690]

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: