cfilters: silence compiler warning

seen with gcc 4.4.0:
```
../../lib/cfilters.c: In function 'Curl_conn_http_version':
../../lib/cfilters.c:523: error: conversion to 'unsigned char' from 'int' may alter its value
```
Ref: https://github.com/curl/curl/actions/runs/13124120573/job/36616761121?pr=15975#step:9:20

Follow-up to e83818cae1 #16073

Closes #16171
This commit is contained in:
Viktor Szakats 2025-02-04 18:29:24 +01:00
parent c9afcecee9
commit ad9a8b7754
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -520,7 +520,7 @@ unsigned char Curl_conn_http_version(struct Curl_easy *data)
if(cf->cft->flags & (CF_TYPE_IP_CONNECT|CF_TYPE_SSL))
break;
}
return result ? 0 : v;
return (unsigned char)(result ? 0 : v);
}
bool Curl_conn_data_pending(struct Curl_easy *data, int sockindex)