Merge pull request #812 from FioraAeterna/fixundefined JIT: don't rely on undefined behavior for constant overflow checking