File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ main(int argc, char *argv_main[])
175
175
ret_val );
176
176
177
177
// Next we will pass a buffer to the WASM function
178
- uint32 argv2 [5 ];
178
+ uint32 argv2 [4 ];
179
179
180
180
// must allocate buffer from wasm instance memory space (never use pointer
181
181
// from host runtime)
@@ -184,8 +184,8 @@ main(int argc, char *argv_main[])
184
184
185
185
memcpy (argv2 , & ret_val , sizeof (float )); // the first argument
186
186
argv2 [1 ] = wasm_buffer ; // the second argument is the wasm buffer address
187
- argv2 [3 ] = 100 ; // the third argument is the wasm buffer size
188
- argv2 [4 ] = 3 ; // the last argument is the digits after decimal point for
187
+ argv2 [2 ] = 100 ; // the third argument is the wasm buffer size
188
+ argv2 [3 ] = 3 ; // the last argument is the digits after decimal point for
189
189
// converting float to string
190
190
191
191
if (!(func2 =
You can’t perform that action at this time.
0 commit comments