From a5d5953d59730d9bf9c00a727c4aeb56f6ffc944 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 26 Jan 2020 21:42:03 +0100 Subject: patch 8.2.0155: warnings from MinGW compiler; tests fail without +float Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when building without +float feature. Solution: Init variables. Fix Json parsing. Skip a few tests that require the +float feature. --- src/if_py_both.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 45bfeec593..3da87ccc36 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -6357,8 +6357,8 @@ ConvertToPyObject(typval_T *tv) ? "" : (char *)tv->vval.v_string); case VAR_NUMBER: return PyLong_FromLong((long) tv->vval.v_number); -#ifdef FEAT_FLOAT case VAR_FLOAT: +#ifdef FEAT_FLOAT return PyFloat_FromDouble((double) tv->vval.v_float); #endif case VAR_LIST: -- cgit v1.2.3