summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index cf887e5afd..b41d45ee0f 100644
--- a/src/json.c
+++ b/src/json.c
@@ -733,9 +733,9 @@ json_decode_item(js_read_T *reader, typval_T *res, int options)
default:
if (VIM_ISDIGIT(*p) || *p == '-')
{
+#ifdef FEAT_FLOAT
char_u *sp = p;
-#ifdef FEAT_FLOAT
if (*sp == '-')
{
++sp;