Build with -Wfloat-conversion + fix all warnings

This commit is contained in:
Anonymous Maarten
2024-06-03 23:33:29 +02:00
committed by GitHub
parent 17c459e384
commit a919774fe4
38 changed files with 199 additions and 203 deletions

View File

@@ -522,8 +522,8 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
#endif
if (self.keyboardHeight) {
int rectbottom = self.textInputRect.y + self.textInputRect.h;
int keybottom = self.view.bounds.size.height - self.keyboardHeight;
int rectbottom = (int)(self.textInputRect.y + self.textInputRect.h);
int keybottom = (int)(self.view.bounds.size.height - self.keyboardHeight);
if (keybottom < rectbottom) {
offset.y = keybottom - rectbottom;
}