From 4430f0642295acce4c3220bec6b7e4f76685cd28 Mon Sep 17 00:00:00 2001 From: jakcron Date: Wed, 10 Nov 2021 15:12:20 +0800 Subject: [PATCH] Address Ubuntu compiler error/warn. --- src/Settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Settings.cpp b/src/Settings.cpp index 7603e45..29326dd 100644 --- a/src/Settings.cpp +++ b/src/Settings.cpp @@ -599,7 +599,7 @@ void nstool::SettingsInitializer::determine_filetype() auto raw_data = file.pullData(0, 0x5000); #define _TYPE_PTR(st) ((st*)(raw_data.data())) -#define _ASSERT_FILE_SIZE(sz) (file.length() >= (sz)) +#define _ASSERT_FILE_SIZE(sz) (file.length() >= tc::io::IOUtil::castSizeToInt64(sz)) // do easy tests