emscripten-core / emscripten-core/emscripten
The `MIN_INT{8,16,32,53}` is incorrect when compile with `-sASSERTIONS=2`
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Please include the following in your bug report:
**Version of emscripten/emsdk:**
```
emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.48 (e967e20b4727956a30592165a3c1cde5c67fa0a8)
clang version 18.0.0 (https://github.com/llvm/llvm-project a54545ba6514802178cf7cf1c1dd9f7efbf3cde7)
Target: wasm32-unknown-emscripten
Thread model: posix
```
```
Aborted(Assertion failed: value (-2147483648) too small to write as 32-bit value)
RuntimeError: Aborted(Assertion failed: value (-2147483648) too small to write as 32-bit value)
```
https://github.com/emscripten-core/emscripten/blob/900aee0a2df98b28579d72b17f6fa73e48087e69/src/runtime_debug.js#L110-L114
Should have no `+ 1` here?
Contributor guide
Assessment
This issue has not been assessed yet.