Closing #2334:
* 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:
parent
2feea51f57
commit
0bae871739
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user