# HG changeset patch # User Matti Hamalainen # Date 1226393595 -7200 # Node ID 5ec3b7d147150d151cc9969dc014dc908f158e5b # Parent f6666e7c1a48d37aa6c20fde6790a144731a71c4 Add typecasts to fix printing of 8-bit characters. diff -r f6666e7c1a48 -r 5ec3b7d14715 nnchat.c --- a/nnchat.c Mon Nov 10 08:32:49 2008 +0200 +++ b/nnchat.c Tue Nov 11 10:53:15 2008 +0200 @@ -433,7 +433,7 @@ int val = 0; s++; if (*s == '½') { - waddch(win, *s | col); + waddch(win, ((unsigned char) *s) | col); s++; } else { while (*s && isdigit(*s)) { @@ -451,7 +451,7 @@ } } } else { - waddch(win, *s | col); + waddch(win, ((unsigned char) *s) | col); s++; } }