]> git.ipfire.org Git - thirdparty/curl.git/commit
libssh: silence `-Wconversion` with a cast (Windows 32-bit)
authorViktor Szakats <commit@vsz.me>
Wed, 5 Feb 2025 18:19:04 +0000 (19:19 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 5 Feb 2025 20:19:36 +0000 (21:19 +0100)
commita0d3a32fba0f186b3ef401befec7950326575ad4
tree76b86484fdfaa67c369b0a26f75ee9e789375f93
parent6fc703904b2ed5e320abd66c9ef1efc894578fe9
libssh: silence `-Wconversion` with a cast (Windows 32-bit)

Seen with GCC 13 with Windows x86:
```
lib/vssh/libssh.c: In function 'myssh_statemach_act':
lib/vssh/libssh.c:1851:41: error: conversion from 'curl_off_t' {aka 'long long int'} to 'size_t' {aka 'unsigned int'} may change value [-Werror=conversion]
 1851 |                              data->state.infilesize,
      |                              ~~~~~~~~~~~^~~~~~~~~~~
```
Ref: https://github.com/curl/curl/actions/runs/13161422041/job/36737994642?pr=16182#step:3:5111

Closes #16194
lib/vssh/libssh.c