diff options
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index 64ef93fabb..6d7b1939e0 100644 --- a/src/json.c +++ b/src/json.c @@ -215,7 +215,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options) case VAR_NUMBER: vim_snprintf((char *)numbuf, NUMBUFLEN, "%lld", - (long_long_T)val->vval.v_number); + (long_long_T)val->vval.v_number); ga_concat(gap, numbuf); break; @@ -350,6 +350,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options) break; #endif case VAR_UNKNOWN: + case VAR_VOID: internal_error("json_encode_item()"); return FAIL; } |