From 626a1f58befc13994f19fc0a58a01fb0a7e4f3cc Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 3 Apr 2023 10:51:36 +0200 Subject: [PATCH] fix: build --- src/modules/mpris/mpris.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mpris/mpris.cpp b/src/modules/mpris/mpris.cpp index e1194bbf..f9527f12 100644 --- a/src/modules/mpris/mpris.cpp +++ b/src/modules/mpris/mpris.cpp @@ -185,7 +185,7 @@ size_t utf8_truncate(std::string& str, size_t width = std::string::npos) { for (gchar *data = str.data(), *end = data + str.size(); data;) { gunichar c = g_utf8_get_char_validated(data, end - data); - if (c == -1 || c == -2) { + if (c == -1U || c == -2U) { // invalid unicode, treat string as ascii if (width != std::string::npos && str.length() > width) str.resize(width); return str.length();