Skip to content

Commit

Permalink
[WASM] Fix: Integer Overflow / f2i errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rillke committed Nov 29, 2018
1 parent 4e5aac0 commit 1c530b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function make_js {
# ALLOW_MEMORY_GROWTH=1 does not cause performance penalties
# for WASM build and changing TOTAL_MEMORY at runtime is not
# supported.
em++ -O3 "${OGGDIR}/lib/libogg.so" "${FLACDIR}/src/libFLAC/.libs/libFLAC.so" flac.so -o flac.html -s EXPORTED_FUNCTIONS="['_main_js']" -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s RESERVED_FUNCTION_POINTERS=1
em++ -O3 "${OGGDIR}/lib/libogg.so" "${FLACDIR}/src/libFLAC/.libs/libFLAC.so" flac.so -o flac.html -s EXPORTED_FUNCTIONS="['_main_js']" -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s RESERVED_FUNCTION_POINTERS=1 -s "BINARYEN_TRAP_MODE='clamp'"
cp -f flac.js "${DIR}/worker/wasm/flac${FLAC_VARIANT}.js"
cp -f flac.wasm "${DIR}/worker/wasm/flac${FLAC_VARIANT}.wasm.png"

Expand All @@ -91,14 +91,14 @@ function clean {
cd $FLACDIR && git clean -fdx
}

#make_ogg
#checkout_flacfull
#make_flac
#make_js
#checkout_flacenc
#make_flac
#make_js
#checkout_flacfull
make_ogg
checkout_flacfull
make_flac
make_js
checkout_flacenc
make_flac
make_js
checkout_flacfull
run_js

cd $PREV_DIR
Expand Down
Binary file modified worker/wasm/flac.encoder.wasm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified worker/wasm/flac.wasm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c530b5

Please sign in to comment.