Fix an incorrect index in "cton-util wasm -s".
This commit is contained in:
@@ -170,7 +170,7 @@ fn handle_module(
|
|||||||
println!(
|
println!(
|
||||||
"Function #{} bytecode size: {} bytes",
|
"Function #{} bytecode size: {} bytes",
|
||||||
func_index,
|
func_index,
|
||||||
dummy_environ.func_bytecode_sizes[func_index]
|
dummy_environ.func_bytecode_sizes[def_index]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user