fix assert: there are initializers with size==0
authorMatthias Braun <matze@braunis.de>
Wed, 21 Nov 2012 16:48:36 +0000 (17:48 +0100)
committerMatthias Braun <matze@braunis.de>
Wed, 21 Nov 2012 16:49:29 +0000 (17:49 +0100)
ir/be/begnuas.c

index 2ffa499..68e5523 100644 (file)
@@ -944,7 +944,7 @@ static void emit_ir_initializer(normal_or_bitfield *vals,
                                 const ir_initializer_t *initializer,
                                 ir_type *type)
 {
-       assert((size_t) (vals - glob_vals) < max_vals);
+       assert((size_t) (vals - glob_vals) <= max_vals);
 
        if (initializer_is_string_const(initializer)) {
                assert(vals->kind != BITFIELD);