Skip to content

Commit

Permalink
pingpong: fix compiler warning "assigning an enum to unsigned char"
Browse files Browse the repository at this point in the history
Closes #11050
  • Loading branch information
icing authored and bagder committed Apr 28, 2023
1 parent 2541231 commit b0edf0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pingpong.c
Expand Up @@ -211,7 +211,7 @@ CURLcode Curl_pp_vsendf(struct Curl_easy *data,
#ifdef HAVE_GSSAPI
data_sec = conn->data_prot;
DEBUGASSERT(data_sec > PROT_NONE && data_sec < PROT_LAST);
conn->data_prot = data_sec;
conn->data_prot = (unsigned char)data_sec;
#endif

Curl_debug(data, CURLINFO_HEADER_OUT, s, (size_t)bytes_written);
Expand Down Expand Up @@ -316,7 +316,7 @@ CURLcode Curl_pp_readresp(struct Curl_easy *data,
&gotbytes);
#ifdef HAVE_GSSAPI
DEBUGASSERT(prot > PROT_NONE && prot < PROT_LAST);
conn->data_prot = prot;
conn->data_prot = (unsigned char)prot;
#endif
if(result == CURLE_AGAIN)
return CURLE_OK; /* return */
Expand Down

0 comments on commit b0edf0b

Please sign in to comment.