Mercurial > hg > CbC > CbC_gcc
changeset 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 76e1cf5455ef |
children | 351920fa3827 |
files | CbC-examples/c-next.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CbC-examples/c-next.c Sun Dec 23 19:24:05 2018 +0900 +++ b/CbC-examples/c-next.c Sun Dec 23 21:23:56 2018 +0900 @@ -80,9 +80,9 @@ int interp_run(MVMThreadContext *tc){ - INTER inter = {0,0,0,0,0,0,0,0}; + INTER inter = {0,0,0,0,0,0,0,0,0}; INTERP i = &inter; - MVMuint16 cur_op[] = {0,1,1,0,1,2}; + MVMuint16 cur_op[] = {0,1,1,0,1,2,3}; i->main_ret = _CbC_return; i->env = _CbC_environment; i->cur_op = (MVMuint8 *)cur_op;