# HG changeset patch # User matac # Date 1696411180 -32400 # Node ID bb477e0d22631614de4c7787da009fe81f20a70d # Parent 542e951674e99e8fff9fbe3b02bb8a8597b9eaeb fix examples diff -r 542e951674e9 -r bb477e0d2263 CbC_examples/c-next1.c --- a/CbC_examples/c-next1.c Mon Aug 21 18:31:31 2023 +0900 +++ b/CbC_examples/c-next1.c Wed Oct 04 18:19:40 2023 +0900 @@ -79,11 +79,11 @@ int interp_run(MVMThreadContext *tc){ INTER inter = {0,0,0,0,0,0,0,0,0}; INTERP i = &inter; - MVMuint8 cur_op[] = {0,1,1,0,1,2}; + MVMuint16 cur_op[] = {0,1,1,0,1,2}; // i->ret = main_return; i->main_ret = _CbC_return; i->env = _CbC_environment; - i->cur_op = cur_op; + i->cur_op = (MVMuint8 *)cur_op; tc->interp_cur_op = &i->cur_op; tc->interp_bytecode_start = &i->bytecode_start; diff -r 542e951674e9 -r bb477e0d2263 CbC_examples/test_cs.c --- a/CbC_examples/test_cs.c Mon Aug 21 18:31:31 2023 +0900 +++ b/CbC_examples/test_cs.c Wed Oct 04 18:19:40 2023 +0900 @@ -15,7 +15,7 @@ #define NEWN(n, type) (type*)(calloc(n, sizeof(type))) extern void *calloc(size_t count, size_t size); -struct Conext { char c[100]; }; +struct Context { char c[100]; }; void (**v) (struct Context*); __code (**code) (struct Context*);