1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

Fixed comparison between a char and negative value (now using 'signed char' to compare), this should fix minor display bug on some arch like PPC

This commit is contained in:
Sebastien Helleu
2006-10-08 07:43:09 +00:00
parent 3bedad8622
commit ebf5b78fce
4 changed files with 10 additions and 4 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-10-01
ChangeLog - 2006-10-08
Version 0.2.2 (under dev!):
* fixed minor display bug with special chars on some arch like PPC
Version 0.2.1 (2006-10-01):
* fixed crash for DCC receiver when resuming a file (bug #17885)
* fixed DCC error for sender when receiver cancels DCC (bug #17838)
+1 -1
View File
@@ -446,7 +446,7 @@ gui_chat_display_word_raw (t_gui_window *window, char *string)
{
saved_char = next_char[0];
next_char[0] = '\0';
if ((prev_char[0] == -110) && (!prev_char[1]))
if (((signed char)(prev_char[0]) == -110) && (!prev_char[1]))
wprintw (GUI_CURSES(window)->win_chat, ".");
else
wprintw (GUI_CURSES(window)->win_chat, "%s", prev_char);
+4 -1
View File
@@ -1,9 +1,12 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2006-10-01
ChangeLog - 2006-10-08
Version 0.2.2 (under dev!):
* fixed minor display bug with special chars on some arch like PPC
Version 0.2.1 (2006-10-01):
* fixed crash for DCC receiver when resuming a file (bug #17885)
* fixed DCC error for sender when receiver cancels DCC (bug #17838)
+1 -1
View File
@@ -446,7 +446,7 @@ gui_chat_display_word_raw (t_gui_window *window, char *string)
{
saved_char = next_char[0];
next_char[0] = '\0';
if ((prev_char[0] == -110) && (!prev_char[1]))
if (((signed char)(prev_char[0]) == -110) && (!prev_char[1]))
wprintw (GUI_CURSES(window)->win_chat, ".");
else
wprintw (GUI_CURSES(window)->win_chat, "%s", prev_char);