Fix different sign compare warning.

This commit is contained in:
Relintai 2022-06-27 15:47:10 +02:00
parent a6331e9ff9
commit 567716c79a
2 changed files with 3 additions and 3 deletions

View File

@ -11,10 +11,10 @@ void FileCache::set_wwwroot(const String &val) {
}
int FileCache::get_cache_invalidation_time() {
return cache_invalidation_time;
return static_cast<int>(cache_invalidation_time);
}
void FileCache::set_cache_invalidation_time(const int &val) {
cache_invalidation_time = val;
cache_invalidation_time = static_cast<uint64_t>(val);
}
void FileCache::wwwroot_register_file(const String &file_path) {

View File

@ -38,7 +38,7 @@ public:
~FileCache();
String wwwroot;
int cache_invalidation_time;
uint64_t cache_invalidation_time;
Set<String> registered_files;