From 300f40eb9948eef7e7e3645da1ec341cddff2841 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 24 Apr 2018 14:11:53 +0200 Subject: examples/sftpuploadresume: typecast fseek argument to long /docs/examples/sftpuploadresume.c:102:12: warning: conversion to 'long int' from 'curl_off_t {aka long long int}' may alter its value --- docs/examples/sftpuploadresume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/sftpuploadresume.c b/docs/examples/sftpuploadresume.c index 3fcab71fb..6e60c1e57 100644 --- a/docs/examples/sftpuploadresume.c +++ b/docs/examples/sftpuploadresume.c @@ -99,7 +99,7 @@ static int sftpResumeUpload(CURL *curlhandle, const char *remotepath, #ifdef _WIN32 _fseeki64(f, remoteFileSizeByte, SEEK_SET); #else - fseek(f, remoteFileSizeByte, SEEK_SET); + fseek(f, (long)remoteFileSizeByte, SEEK_SET); #endif curl_easy_setopt(curlhandle, CURLOPT_APPEND, 1L); result = curl_easy_perform(curlhandle); -- cgit v1.2.3