@@ -54,7 +54,7 @@ TEST(capi, instantiate_imported_function)
5454 EXPECT_NE (module , nullptr );
5555
5656 FizzyExternalFunction host_funcs[] = {
57- {[](void *, FizzyInstance*, const FizzyValue*, uint32_t , int ) {
57+ {[](void *, FizzyInstance*, const FizzyValue*, size_t , int ) {
5858 return FizzyExecutionResult{false , true , {42 }};
5959 },
6060 nullptr }};
@@ -107,11 +107,11 @@ TEST(capi, execute_with_host_function)
107107 EXPECT_NE (module , nullptr );
108108
109109 FizzyExternalFunction host_funcs[] = {
110- {[](void *, FizzyInstance*, const FizzyValue*, uint32_t , int ) {
110+ {[](void *, FizzyInstance*, const FizzyValue*, size_t , int ) {
111111 return FizzyExecutionResult{false , true , {42 }};
112112 },
113113 nullptr },
114- {[](void *, FizzyInstance*, const FizzyValue* args, uint32_t , int ) {
114+ {[](void *, FizzyInstance*, const FizzyValue* args, size_t , int ) {
115115 return FizzyExecutionResult{false , true , {args[0 ].i64 / args[1 ].i64 }};
116116 },
117117 nullptr }};
@@ -141,7 +141,7 @@ TEST(capi, imported_function_traps)
141141 EXPECT_NE (module , nullptr );
142142
143143 FizzyExternalFunction host_funcs[] = {
144- {[](void *, FizzyInstance*, const FizzyValue*, uint32_t , int ) {
144+ {[](void *, FizzyInstance*, const FizzyValue*, size_t , int ) {
145145 return FizzyExecutionResult{true , false , {}};
146146 },
147147 nullptr }};
@@ -169,7 +169,7 @@ TEST(capi, imported_function_void)
169169
170170 bool called = false ;
171171 FizzyExternalFunction host_funcs[] = {
172- {[](void * context, FizzyInstance*, const FizzyValue*, uint32_t , int ) {
172+ {[](void * context, FizzyInstance*, const FizzyValue*, size_t , int ) {
173173 *static_cast <bool *>(context) = true ;
174174 return FizzyExecutionResult{false , false , {}};
175175 },
@@ -221,7 +221,7 @@ TEST(capi, imported_function_from_another_module)
221221
222222 // TODO fizzy_find_exported_function
223223
224- auto sub = [](void * context, FizzyInstance*, const FizzyValue* args, uint32_t args_size,
224+ auto sub = [](void * context, FizzyInstance*, const FizzyValue* args, size_t args_size,
225225 int depth) -> FizzyExecutionResult {
226226 auto * called_instance = static_cast <FizzyInstance*>(context);
227227 return fizzy_execute (called_instance, 0 , args, args_size, depth + 1 );
0 commit comments