fix sha overflow for sizeof(int) == 32 machines