diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-25 18:28:24 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-25 18:32:52 -0700 |
commit | 3351bf7019d1bba9d62426a4ec77d098775e3f08 (patch) | |
tree | a60c325ec4c6642bd75dc16f8be0eccf0b44cf94 /src/parseTools.js | |
parent | e0053d0115e7028a990aa3d189209c3cc22919c6 (diff) |
send and receive only doubles through ffis, not floats
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 90970e1f..80320826 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -2691,3 +2691,7 @@ function ensureVector(ident, base) { return ident == 0 ? base + '32x4.zero()' : ident; } +function ensureValidFFIType(type) { + return type === 'float' ? 'double' : type; // ffi does not tolerate float XXX +} + |