diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-10 15:58:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-10 15:58:58 -0700 |
commit | ee563858b128512c9fa29eb6a66c8dda8313172c (patch) | |
tree | 9672cef19a0bb37c90afb2e8634eb64f1ae04d4c | |
parent | 1db8ae1f4909b5949a48a2266fce6eef2edd6742 (diff) | |
download | binaryen-ee563858b128512c9fa29eb6a66c8dda8313172c.tar.gz binaryen-ee563858b128512c9fa29eb6a66c8dda8313172c.tar.bz2 binaryen-ee563858b128512c9fa29eb6a66c8dda8313172c.zip |
use an int32_t for BinaryenLiteral in the C API, simpler and good enough since we translate anyhow (#462)
-rw-r--r-- | src/binaryen-c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index d287315b0..2fe394bd2 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -85,7 +85,7 @@ BinaryenFunctionTypeRef BinaryenAddFunctionType(BinaryenModuleRef module, const // Literals. These are passed by value. struct BinaryenLiteral { - int type; // size of enum in c++ + int32_t type; union { int32_t i32; int64_t i64; |