From: Yitzchak Scott-Thoennes Date: Mon, 8 Aug 2005 20:33:02 +0000 (-0700) Subject: Re: Data::Dumper bug? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=27688d77084069fcb656e12fab5d3ee0ba810e6c;p=p5sagit%2Fp5-mst-13.2.git Re: Data::Dumper bug? Message-ID: <20050809033301.GA3804@efn.org> p4raw-id: //depot/perl@25308 --- diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm index ef4da8a..bb7916b 100644 --- a/ext/Data/Dumper/Dumper.pm +++ b/ext/Data/Dumper/Dumper.pm @@ -9,7 +9,7 @@ package Data::Dumper; -$VERSION = '2.121_07'; +$VERSION = '2.121_08'; #$| = 1; diff --git a/ext/Data/Dumper/Dumper.xs b/ext/Data/Dumper/Dumper.xs index 3db74ae..2552391 100644 --- a/ext/Data/Dumper/Dumper.xs +++ b/ext/Data/Dumper/Dumper.xs @@ -614,9 +614,11 @@ DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv, I32 nlen; bool do_utf8 = FALSE; - if ((sortkeys && !(keys && (I32)i <= av_len(keys))) || - !(entry = hv_iternext((HV *)ival))) - break; + if (sortkeys) { + if (!(keys && (I32)i <= av_len(keys))) break; + } else { + if (!(entry = hv_iternext((HV *)ival))) break; + } if (i) sv_catpvn(retval, ",", 1);