Skip to content

Commit babefe1

Browse files
Saldivarcherkripken
authored andcommitted
Small revision to ccall (emscripten-core#6422)
1 parent 1b8e2c0 commit babefe1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/preamble.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function ccall (ident, returnType, argTypes, args, opts) {
173173
#endif
174174
#endif
175175
if (returnType === 'string') ret = Pointer_stringify(ret);
176-
if (returnType === 'boolean') ret = Boolean(ret);
176+
else if (returnType === 'boolean') ret = Boolean(ret);
177177
if (stack !== 0) {
178178
#if EMTERPRETIFY_ASYNC
179179
if (opts && opts.async) {

0 commit comments

Comments
 (0)