backport from trunk (rev #9975):
[core]: Fixed a typecast bug in crc32_uint