* vms-alpha.c (alpha_vms_slurp_relocs): Make cur_psect unsigned.
Correct cur_psect bounds check.
static bool
alpha_vms_slurp_relocs (bfd *abfd)
{
- int cur_psect = -1;
+ unsigned int cur_psect = -1u;
vms_debug2 ((3, "alpha_vms_slurp_relocs\n"));
bfd_size_type size;
/* Get section to which the relocation applies. */
- if (cur_psect < 0 || cur_psect > (int)PRIV (section_count))
+ if (cur_psect >= PRIV (section_count))
{
_bfd_error_handler (_("invalid section index in ETIR"));
goto fail;