This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6726156
)
Warning fix. Since HePV's second argument is supposed
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 8 Mar 2007 16:12:29 +0000
(16:12 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 8 Mar 2007 16:12:29 +0000
(16:12 +0000)
to be an unsigned integer, there's not point in comparing
it to 0.
p4raw-id: //depot/perl@30519
hv.h
patch
|
blob
|
blame
|
history
diff --git
a/hv.h
b/hv.h
index
555c6f0
..
2e1a506
100644
(file)
--- a/
hv.h
+++ b/
hv.h
@@
-303,8
+303,7
@@
C<SV*>.
#define HeHASH(he) HEK_HASH(HeKEY_hek(he))
#define HePV(he,lp) ((HeKLEN(he) == HEf_SVKEY) ? \
SvPV(HeKEY_sv(he),lp) : \
- (((lp = HeKLEN(he)) >= 0) ? \
- HeKEY(he) : NULL))
+ ((lp = HeKLEN(he)) >= 0)) \
#define HeSVKEY(he) ((HeKEY(he) && \
HeKLEN(he) == HEf_SVKEY) ? \