diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-26 21:42:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-26 21:42:03 +0100 |
commit | a5d5953d59730d9bf9c00a727c4aeb56f6ffc944 (patch) | |
tree | c5bec5d9cd05b5f9772c98e1313c0594c5003df4 /src/if_py_both.h | |
parent | 21b9e9773d64de40994f8762173bdd8befa6acf7 (diff) | |
download | vim-git-a5d5953d59730d9bf9c00a727c4aeb56f6ffc944.tar.gz |
patch 8.2.0155: warnings from MinGW compiler; tests fail without +floatv8.2.0155
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.
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 45bfeec59..3da87ccc3 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: |