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:
@@ -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)
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user