Cast type before the left shift
Building ipmitool with UBSAN and I got:
```
...
xxx/ipmitool/include/ipmitool/helper.h:191:14: runtime error: left shift of 160
by 24 places cannot be represented in type 'int'
#0 0x55bddaa56f11 in ipmi32toh
xxx/ipmitool/include/ipmitool/helper.h:191:14
```
Tested: with this, I tested ipmitool again and the issue disappeared.
Resolved: ipmitool/ipmitool#352
Signed-off-by: Tom Tung <shes050117@gmail.com> T
Tom Tung committed
46fd8d942cb1e3c7bfa491c9e129b7f72de526c0
Parent: a1dc78c
Committed by Alexander Amelkin <mocbuhtig@amelkin.msk.ru>
on 8/28/2022, 5:23:25 PM