mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
compiler warning fixes + one real bug in dcc-chat
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@850 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c4af878047
commit
14e5dc8b8e
5 changed files with 7 additions and 7 deletions
|
|
@ -87,7 +87,7 @@ int format_expand_styles(GString *out, char format, TEXT_DEST_REC *dest)
|
|||
if (p != NULL) {
|
||||
g_string_append_c(out, 4);
|
||||
g_string_append_c(out, FORMAT_COLOR_NOCHANGE);
|
||||
g_string_append_c(out, (int) (p-backs)+'0');
|
||||
g_string_append_c(out, (char) ((int) (p-backs)+'0'));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ int format_expand_styles(GString *out, char format, TEXT_DEST_REC *dest)
|
|||
p = strchr(fores, format);
|
||||
if (p != NULL) {
|
||||
g_string_append_c(out, 4);
|
||||
g_string_append_c(out, (int) (p-fores)+'0');
|
||||
g_string_append_c(out, (char) ((int) (p-fores)+'0'));
|
||||
g_string_append_c(out, FORMAT_COLOR_NOCHANGE);
|
||||
break;
|
||||
}
|
||||
|
|
@ -106,7 +106,7 @@ int format_expand_styles(GString *out, char format, TEXT_DEST_REC *dest)
|
|||
p = strchr(boldfores, format);
|
||||
if (p != NULL) {
|
||||
g_string_append_c(out, 4);
|
||||
g_string_append_c(out, 8+(int) (p-boldfores)+'0');
|
||||
g_string_append_c(out, (char) (8+(int) (p-boldfores)+'0'));
|
||||
g_string_append_c(out, FORMAT_COLOR_NOCHANGE);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue