aboutsummaryrefslogtreecommitdiff
path: root/lib/base64.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-10-18 08:19:47 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-10-18 13:04:49 +0200
commit650677461fb95481f02a55f02c356b0d6ce2de52 (patch)
treebb5fc6c1d3040382722ab8f1feb018d0db9b316e /lib/base64.c
parent700438c556424c5a74f7be9bfc5c936b375b67dd (diff)
examples/sslbackend: fix -Wchar-subscripts warning
With the `isdigit` implementation that comes with MSYS2, the argument is used as an array subscript, resulting in a -Wchar-subscripts warning. `isdigit`'s behavior is undefined if the argument is negative and not EOF [0]. As done in lib/curl_ctype.h, cast the `char` variable to `unsigned char` to avoid that. [0] https://en.cppreference.com/w/c/string/byte/isdigit Closes https://github.com/curl/curl/pull/4503
Diffstat (limited to 'lib/base64.c')
0 files changed, 0 insertions, 0 deletions