Global: Fix some int/size_t conversion warnings.

This commit is contained in:
Unknown W. Brackets committed 2022-03-13 12:03:48 -07:00
1 parent da4b9e82f3
commit ffbd9bbe98
6 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ void PSPMsgDialog::DisplayMessage(std::string text, bool hasYesNo, bool hasOK) {
// Without the scrollbar, we have 390 total pixels.
float WRAP_WIDTH = 340.0f;
if (UTF8StringNonASCIICount(text.c_str()) >= text.size() / 4) {
if ((size_t)UTF8StringNonASCIICount(text.c_str()) >= text.size() / 4) {
WRAP_WIDTH = 376.0f;
if (text.size() > 12) {
messageStyle.scale = 0.6f;