Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt Keep the if chain going.



details:   https://anonhg.NetBSD.org/src/rev/841c2c30c1f1
branches:  trunk
changeset: 343700:841c2c30c1f1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Feb 21 13:33:47 2016 +0000

description:
Keep the if chain going.

diffstat:

 external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5aedb964f538 -r 841c2c30c1f1 external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c    Sun Feb 21 09:50:10 2016 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c    Sun Feb 21 13:33:47 2016 +0000
@@ -693,7 +693,7 @@
                ar->ad_nelems = uval + 1;
        else if (die_signed(dw, dim, DW_AT_upper_bound, &sval, 0))
                ar->ad_nelems = sval + 1;
-       if (die_unsigned(dw, dim, DW_AT_count, &uval, 0))
+       else if (die_unsigned(dw, dim, DW_AT_count, &uval, 0))
                ar->ad_nelems = uval + 1;
        else if (die_signed(dw, dim, DW_AT_count, &sval, 0))
                ar->ad_nelems = sval + 1;



Home | Main Index | Thread Index | Old Index