refix the broken place

typecast from signed to unsigned of a bigger size