1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 04:27:40 +00:00

LibGUI: Fix compiler warnings.

This commit is contained in:
Andreas Kling 2019-06-22 14:41:11 +02:00
parent 56ae96558b
commit 3f0f7caa45
6 changed files with 21 additions and 13 deletions

View file

@ -626,7 +626,7 @@ void GWindow::set_icon_path(const StringView& path)
WSAPI_ClientMessage message;
message.type = WSAPI_ClientMessage::Type::SetWindowIcon;
message.window_id = m_window_id;
ASSERT(path.length() < sizeof(message.text));
ASSERT(path.length() < (int)sizeof(message.text));
strcpy(message.text, path.characters());
message.text_length = path.length();
GEventLoop::post_message_to_server(message);