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:
Michael Lotz
2011-05-31 02:09:10 +00:00
parent ef13dbda92
commit 10a1a81d02
@@ -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;