pasim: fixed unsigned int comparison segfault