mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
Refactor travis build to use clang's sanitizers
- Valgrind configuration removed - Fix errors reported by the undefined behavior sanitizer - Travis will now run two build steps: - A normal build of a shared library for unit testing(in parallel with gcc) - A clang build with some sanitizers enabled for integration testing. After these changes travis will run much faster, while providing valgrind-like error detection.
This commit is contained in:
@@ -4275,7 +4275,7 @@ eval6 (
|
||||
else if (op == '/') {
|
||||
/* We rely on the floating point library to handle divide
|
||||
* by zero to result in "inf" and not a crash. */
|
||||
f1 = f1 / f2;
|
||||
f1 = f2 != 0 ? f1 / f2 : INFINITY;
|
||||
} else {
|
||||
EMSG(_("E804: Cannot use '%' with Float"));
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user