For some reason I do not grasp right now, "c" needs to have uchar type or

the method is broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29821 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-03-31 13:35:31 +00:00
parent f247113640
commit 8222443084
+1 -1
View File
@@ -42,7 +42,7 @@ struct UTF8Char {
static int32 ByteCount(char firstChar)
{
// Note, this does not recognize invalid chars
uint32 c = firstChar;
uchar c = firstChar;
if (c < 0x80)
return 1;
if (c < 0xe0)