Mercurial > hg > CbC > old > device
changeset 892:3542a0e38a54
strinit worked (except one on non parse_mode )
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 06 Apr 2014 14:43:50 +0900 |
parents | ece860823251 |
children | 1408a5f1676f |
files | mc-codegen.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mc-codegen.c Sun Apr 06 14:17:59 2014 +0900 +++ b/mc-codegen.c Sun Apr 06 14:43:50 2014 +0900 @@ -3814,7 +3814,7 @@ assign_data(list2(CONST,offset1-offset),EMPTY,v,offset); } type=cadr(cadddr(init)); - offset = assign_data(e,t,v,offset1); + offset = gen_decl_data0(v,t,e,offset1); init = cadr(init); } if ((sz=(sz-offset))>0) @@ -3919,7 +3919,7 @@ offset=assign_data(e,target_type,v,offset); } } else { - error(-1); + offset=assign_data(init,target_type,v,offset); } if (decl_str_init) { offset = gen_delayed_decl_data(v,offset);