From 62993323494d846190590606d37aff1136421671 Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 1 Dec 2017 00:34:16 +0300 Subject: [PATCH] fix! set lsan options --- .travis.yml | 1 + src/nvim/eval/encode.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2bab1635ad..a32532d21a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,6 +39,7 @@ env: - ASAN_OPTIONS="detect_leaks=1:check_initialization_order=1:log_path=$LOG_DIR/asan" - TSAN_OPTIONS="log_path=$LOG_DIR/tsan" - UBSAN_OPTIONS="print_stacktrace=1 log_path=$LOG_DIR/ubsan" + - LSAN_OPTIONS="verbosity=1:log_threads=1" # Environment variables for Valgrind. - VALGRIND_LOG="$LOG_DIR/valgrind-%p.log" # Cache marker for third-party dependencies cache. diff --git a/src/nvim/eval/encode.c b/src/nvim/eval/encode.c index ef647b3ee4..650f11a989 100644 --- a/src/nvim/eval/encode.c +++ b/src/nvim/eval/encode.c @@ -316,7 +316,7 @@ int encode_read_from_list(ListReaderState *const state, char *const buf, #define TYPVAL_ENCODE_CONV_FLOAT(tv, flt) \ do { \ const float_T flt_ = (flt); \ - switch (fpclassify(flt_)) { \ + switch (fpclassify((double)flt_)) { \ case FP_NAN: { \ ga_concat(gap, (char_u *) "str2float('nan')"); \ break; \