author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Sat, 3 Mar 2007 18:28:57 +0000 (18:28 +0000) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Mar 2007 02:55:10 +0000 (18:55 -0800) | ||
commit | 2832114532d92bdd533f84fa520050c5de95c012 | |
tree | cf8c89d99959a00c6e9c2c96dc1f3e4be46a76ac | tree | snapshot |
parent | 41b200179dfac7bf4c3b98270951937b537e2b24 | commit | diff |
Fix some "comparison is always true/false" warnings.
On Cygwin the wchar_t type is an unsigned short (16-bit) int.
This results in the above warnings from the return statement in
the wcwidth() function (in particular, the expressions involving
constants with values larger than 0xffff). Simply replace the
use of wchar_t with an unsigned int, typedef-ed as ucs_char_t.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
On Cygwin the wchar_t type is an unsigned short (16-bit) int.
This results in the above warnings from the return statement in
the wcwidth() function (in particular, the expressions involving
constants with values larger than 0xffff). Simply replace the
use of wchar_t with an unsigned int, typedef-ed as ucs_char_t.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
utf8.c | diff | blob | history |