Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: expected type i32 but got i64 when compile a wasm libriry #606

Open
mzxyz opened this issue May 28, 2019 · 1 comment
Open

Error: expected type i32 but got i64 when compile a wasm libriry #606

mzxyz opened this issue May 28, 2019 · 1 comment

Comments

@mzxyz
Copy link

mzxyz commented May 28, 2019

Issue Description:

I use wasm-crypto for the development and replace the WebAssembly with webassemblyjs in wasm_bg.js. But it throw errors in node env:

Expected type i32 but got i64 at func_11:38.
Expected type i32 but got i64 at func_12:22.
Expected type i32 but got i64 at func_18:16.
Expected type i32 but got i64 at func_30:16.
Expected type i32 but got i64 at func_31:19.
Expected type i32 but got i64 at func_37:86.
Expected type i32 but got i64 at func_41:16.
Expected type i64 but got i32 at func_44:6.
Type mismatch in if, got false and  at func_44:4.
Type mismatch in select at func_49:33.
Type mismatch in if, got false and  at func_49:7.
Type mismatch in select at func_49:38.
Type mismatch in select at func_49:15.
Expected type i32 but got i64 at func_56:5.
Expected type i32 but got none at func_86:13.
Expected type i32 but got none at func_92:50.
Expected type i32 but got i64 at func_98:88.
Type mismatch in if, got false and  at func_98:17.
Expected type i32 but got none at func_112:47.
Type mismatch in if, got false and  at func_112:27.
Expected type i32 but got none at func_132:9.
Type mismatch in if, got false and  at func_132:9.
Type mismatch in if, got false and  at func_132:4.
Expected type i32 but got i64 at func_136:4.
Type mismatch in if, got false and  at func_136:1.
Expected type i32 but got none at func_147:5.
Type mismatch in if, got false and  at func_147:15.
Expected type i64 but got i32 at func_149:10.
Type mismatch in if, got false and  at func_149:6.
Expected type i32 but got none at func_151:50.
Type mismatch in if, got false and  at func_151:11.
Expected type i32 but got i64 at func_153:2.
Type mismatch in select at func_160:14.
Type mismatch in select at func_161:11.
Expected type i32 but got none at func_165:49.
Expected type i64 but got i32 at func_301:12.
Expected type i64 but got i32 at func_377:3.

I have look through #472 but still can not figure out it.

@mzxyz mzxyz changed the title Error: Expected type i32 but got i64 when compile a wasm libriry Error: expected type i32 but got i64 when compile a wasm libriry May 28, 2019
@0xthreebody
Copy link

Same issue.

深度截图_选择区域_20190510145156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants