summaryrefslogtreecommitdiff
path: root/kwset.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2019-06-13 04:49:47 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-06-13 09:34:17 -0700
commit9dae4fe79f85dd0eaf41215bea76c68b65398fbc (patch)
treee6d017d7b63f0730eee15aa52def36f03067a23c /kwset.c
parentwinansi: simplify loading the GetCurrentConsoleFontEx() function (diff)
downloadtgif-9dae4fe79f85dd0eaf41215bea76c68b65398fbc.tar.xz
config: avoid calling `labs()` on too-large data type
The `labs()` function operates, as the initial `l` suggests, on `long` parameters. However, in `config.c` we tried to use it on values of type `intmax_t`. This problem was found by GCC v9.x. To fix it, let's just "unroll" the function (i.e. negate the value if it is negative). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'kwset.c')
0 files changed, 0 insertions, 0 deletions