Also clear the sign extension when not changing signedness, as otherwise we'll
overwrite the values with the sign extension. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41850 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -125,7 +125,7 @@ HIDReportItem::ScaledData(uint8 scaleToBits, bool toBeSigned)
|
||||
else
|
||||
source = (uint32)((int32)fData - (int32)fMinimum);
|
||||
} else
|
||||
source = fData;
|
||||
source = fData & fMask;
|
||||
|
||||
if (fBitCount == scaleToBits)
|
||||
return source;
|
||||
|
||||
Reference in New Issue
Block a user