cleanup: Cast to get rid of warnings
This commit is contained in:
@@ -369,7 +369,7 @@ find_col(const char* col_name, int n)
|
|||||||
* blue.
|
* blue.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (n >= sizeof(name)) {
|
if (n >= (int)sizeof(name)) {
|
||||||
/* truncate */
|
/* truncate */
|
||||||
log_error("Color: <%s,%d> bigger than %zu", col_name, n, sizeof(name));
|
log_error("Color: <%s,%d> bigger than %zu", col_name, n, sizeof(name));
|
||||||
n = sizeof(name) - 1;
|
n = sizeof(name) - 1;
|
||||||
|
|||||||
@@ -497,7 +497,7 @@ _mucwin_print_triggers(ProfWin* window, const char* const message, GList* trigge
|
|||||||
}
|
}
|
||||||
trigger_section[i] = '\0';
|
trigger_section[i] = '\0';
|
||||||
|
|
||||||
if (first_trigger_pos + first_trigger_len < strlen(message)) {
|
if (first_trigger_pos + first_trigger_len < (int)strlen(message)) {
|
||||||
win_append_highlight(window, THEME_ROOMTRIGGER_TERM, "%s", trigger_section);
|
win_append_highlight(window, THEME_ROOMTRIGGER_TERM, "%s", trigger_section);
|
||||||
_mucwin_print_triggers(window, &message[first_trigger_pos + first_trigger_len], triggers);
|
_mucwin_print_triggers(window, &message[first_trigger_pos + first_trigger_len], triggers);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user