Skip to content
Snippets Groups Projects
Commit 2e934268 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix some signed/unsigned comparison warnings from MSVC

parent 00d4dd98
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3971 passed
......@@ -914,12 +914,12 @@ static void receive_thread(void* arg)
char path[MAX_PATH + 1];
SAFECOPY(path, xfer.filename);
*getfname(path) = '\0';
uint64_t avail = getfreediskspace(path, 1);
int64_t avail = getfreediskspace(path, 1);
if(avail <= scfg.min_dspace)
avail = 0;
else
avail -= scfg.min_dspace;
uint64_t max_fsize = xfer.filepos + avail;
int64_t max_fsize = xfer.filepos + avail;
if(startup->max_fsize > 0 && startup->max_fsize < max_fsize)
max_fsize = startup->max_fsize;
if(startup->options & FTP_OPT_DEBUG_DATA)
......@@ -4549,7 +4549,7 @@ static void ctrl_thread(void* arg)
dir=i;
p=tp+1;
}
uint64_t freespace;
int64_t freespace;
if(dir<0) {
sprintf(str,"%s.rep",scfg.sys_id);
if(!(startup->options&FTP_OPT_ALLOW_QWK)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment