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

Resolve signed/unsigned compare warning with MSVC

parent b4e18168
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3795 passed
...@@ -6051,9 +6051,9 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure) ...@@ -6051,9 +6051,9 @@ void import_packets(const char* inbound, nodecfg_t* inbox, bool secure)
void check_free_diskspace(const char* path) void check_free_diskspace(const char* path)
{ {
if(cfg.min_free_diskspace && isdir(path)) { if(cfg.min_free_diskspace && isdir(path)) {
ulong freek = getfreediskspace(path, 1024); uint64_t freek = getfreediskspace(path, 1024);
if(freek < cfg.min_free_diskspace / 1024) { if(freek < (uint64_t)cfg.min_free_diskspace / 1024) {
lprintf(LOG_ERR, "!Insufficient free disk space (%luK < %"PRId64"K bytes) in %s\n" lprintf(LOG_ERR, "!Insufficient free disk space (%luK < %"PRId64"K bytes) in %s\n"
, freek, cfg.min_free_diskspace / 1024, path); , freek, cfg.min_free_diskspace / 1024, path);
bail(1); bail(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment