changeset 258:bb477e0d2263

fix examples
author matac
date Wed, 04 Oct 2023 18:19:40 +0900
parents 542e951674e9
children 011663b4a808
files CbC_examples/c-next1.c CbC_examples/test_cs.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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*);