From cf0fa714f6e7f11561fcef821326b6d0b88ec852 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 12 Jun 2026 18:25:20 +0200 Subject: [PATCH] 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 --- src/tool_setup.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tool_setup.h b/src/tool_setup.h index 7a5f597bbb..7e77c114f1 100644 --- a/src/tool_setup.h +++ b/src/tool_setup.h @@ -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