mirror of
https://github.com/curl/curl.git
synced 2026-06-16 21:25:39 +03:00
try fix
```
src/tool_operate.c:581:50: error: conversion to 'off_t {aka long int}' from 'curl_off_t {aka long long int}' may alter its value [-Werror=conversion]
if(toolx_ftruncate(fileno(outs->stream), outs->init)) {
^~~~
```
https://github.com/curl/curl/actions/runs/27428204937/job/81071486140
This commit is contained in:
parent
0b30ffbd8b
commit
cf0fa714f6
1 changed files with 2 additions and 0 deletions
|
|
@ -102,6 +102,8 @@ int toolx_ftruncate_win32(int fd, curl_off_t where);
|
|||
#elif defined(__DJGPP__)
|
||||
int toolx_ftruncate_djgpp(int fd, curl_off_t where);
|
||||
#define toolx_ftruncate toolx_ftruncate_djgpp
|
||||
#elif defined(__AMIGA__)
|
||||
#define toolx_ftruncate(f, o) ftruncate(f, (off_t)(o))
|
||||
#else
|
||||
#define toolx_ftruncate ftruncate
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue