Fix MSVC compiler warning

reg. conversion from 'size_t' to 'int', possible loss of data (C4267)
This commit is contained in:
Joachim Schmitz 2023-08-09 10:56:21 +02:00
parent 0353198dc6
commit 2be89ceacc

View file

@ -100,5 +100,5 @@ String DataFormatter::formatFileSize(size_t size)
}
//: Used to indicate file size. Ideally, keep the translation short; feel free to use an abbreviation.
return mtrc("global", "%n bytes", "", size);
return mtrc("global", "%n byte(s)", nullptr, int(size));
}