* fix incorrect implicit type extension in WidthBuffer::CharToCode() that led 
  to some values not being represented correctly (depending on input chars)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38034 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-11 18:08:45 +00:00
parent 2feea51f57
commit 0bae871739
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ CharToCode(const char* text, const int32 charLen)
uint32 value = 0;
int32 shiftVal = 24;
for (int32 c = 0; c < charLen; c++) {
value |= (text[c] << shiftVal);
value |= ((unsigned char)text[c] << shiftVal);
shiftVal -= 8;
}
return value;