mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
schannel: fix -Warith-conversion
gcc 13 warning
``` lib/vtls/schannel.c:1201:22: warning: conversion to 'unsigned int' from 'int' may change the sign of the result [-Warith-conversion] 1201 | *extension_len = *list_len + | ^ ``` Closes #12616
This commit is contained in:
parent
f0ea11b50b
commit
aff26089e8
@ -1198,9 +1198,8 @@ schannel_connect_step1(struct Curl_cfilter *cf, struct Curl_easy *data)
|
||||
cur += proto.len;
|
||||
|
||||
*list_len = curlx_uitous(cur - list_start_index);
|
||||
*extension_len = *list_len +
|
||||
(unsigned short)sizeof(unsigned int) +
|
||||
(unsigned short)sizeof(unsigned short);
|
||||
*extension_len = (unsigned int)(*list_len +
|
||||
sizeof(unsigned int) + sizeof(unsigned short));
|
||||
|
||||
InitSecBuffer(&inbuf, SECBUFFER_APPLICATION_PROTOCOLS, alpn_buffer, cur);
|
||||
InitSecBufferDesc(&inbuf_desc, &inbuf, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user