Fix memrchr termination condition

">= 0" is always true for unsigned types.