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