[openEuler-5.10-LTS 261/501] fpga: altera-pr-ip: fix unsigned comparison with less than zero