Use discrete_position in ada-valprint.c
authorTom Tromey <tromey@adacore.com>
Thu, 27 Apr 2023 16:59:59 +0000 (10:59 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 5 May 2023 19:52:52 +0000 (13:52 -0600)
commit100c7a99a5d4c30bb73d49a65eb45d1039646eaa
tree0924efb9c477c0c16b78f1e0e7b2a307cbef8b09
parent3965bff5b9ae0957dfa882f7480dd20dae7adbfc
Use discrete_position in ada-valprint.c

I found a couple of spots in ada-valprint.c that use an explicit loop,
but where discrete_position could be used instead.

Reviewed-by: Keith Seitz <keiths@redhat.com>
gdb/ada-valprint.c