diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-25 21:26:49 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-25 21:26:49 +0100 |
commit | c593bec4120f122e8a9129ec461968f1bd214435 (patch) | |
tree | 22369683929b342529fb245d598e4ee9132d917b /src/json.c | |
parent | e010c720b2024d8c6df45c60c6001c3b4f157de1 (diff) | |
download | vim-git-c593bec4120f122e8a9129ec461968f1bd214435.tar.gz |
patch 8.2.0315: build failure on HP-UX systemv8.2.0315
Problem: Build failure on HP-UX system.
Solution: Use LONG_LONG_MIN instead of LLONG_MIN. Add type casts for switch
statement. (John Marriott)
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c index 770e14439..d5e5782c5 100644 --- a/src/json.c +++ b/src/json.c @@ -194,7 +194,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options) switch (val->v_type) { case VAR_BOOL: - switch (val->vval.v_number) + switch ((long)val->vval.v_number) { case VVAL_FALSE: ga_concat(gap, (char_u *)"false"); break; case VVAL_TRUE: ga_concat(gap, (char_u *)"true"); break; @@ -202,7 +202,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options) break; case VAR_SPECIAL: - switch (val->vval.v_number) + switch ((long)val->vval.v_number) { case VVAL_NONE: if ((options & JSON_JS) != 0 && (options & JSON_NO_NONE) == 0) |