diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-13 12:11:03 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-13 15:26:28 -0300 |
commit | f6ace9962d95eb12236083871154c1501f02c556 (patch) | |
tree | f9a1d5b6ca8eaa68114c98dcd92c6161bc15454d /src/eval.c | |
parent | 3cac32e49c7fae9cf5963d35f3fd3052c061b2fa (diff) | |
download | rneovim-f6ace9962d95eb12236083871154c1501f02c556.tar.gz rneovim-f6ace9962d95eb12236083871154c1501f02c556.tar.bz2 rneovim-f6ace9962d95eb12236083871154c1501f02c556.zip |
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.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index b164912c1c..d5ed1b1e04 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; |