From cf1466bd473e06812dce0c3880f7e4af169e9e72 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 1 Mar 2020 02:43:28 +0000 Subject: unit1651: Fixed conversion compilation warning 371:17: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] Closes #5008 --- tests/unit/unit1651.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit/unit1651.c') 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, , et al. + * Copyright (C) 2018 - 2020, Daniel Stenberg, , 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; } -- cgit v1.2.3