diff options
author | Steve Holme <steve_holme@hotmail.com> | 2020-03-01 02:43:28 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2020-03-01 15:10:28 +0000 |
commit | cf1466bd473e06812dce0c3880f7e4af169e9e72 (patch) | |
tree | 1904dceb4261bfae23543838a31d03db25da0178 /tests/unit | |
parent | cdcc9df182727b744b1baf686685a2ac41d0f36d (diff) |
unit1651: Fixed conversion compilation warning
371:17: warning: conversion to 'unsigned char' from 'int' may alter its
value [-Wconversion]
Closes #5008
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/unit1651.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1651.c b/tests/unit/unit1651.c index 3652601f9..44dbf4b51 100644 --- a/tests/unit/unit1651.c +++ b/tests/unit/unit1651.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 2018 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2018 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -368,7 +368,7 @@ UNITTEST_START for(byte = 1 ; byte < 255; byte += 17) { for(i = 0; i < 45; i++) { char backup = cert[i]; - cert[i] = (unsigned char)byte&0xff; + cert[i] = (unsigned char) (byte & 0xff); (void) Curl_extract_certinfo(&conn, 0, beg, end); cert[i] = backup; } |