*\r
* \return Left-aligned data of the given report item's pre-retrived value for the given datatype\r
*/\r
- #define HID_ALIGN_DATA(reportitem, type) ((type)(reportitem->Value << (sizeof(type) - reportitem->Attributes.BitSize)))\r
+ #define HID_ALIGN_DATA(reportitem, type) ((type)(reportitem->Value << ((8 * sizeof(type)) - reportitem->Attributes.BitSize)))\r
\r
/* Public Interface - May be used in end-application: */\r
/* Enums: */ \r