summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2022-06-30 11:23:16 +0100
committerPaul Evans <leonerd@leonerd.org.uk>2022-07-02 23:00:28 +0100
commit53083cad3a096a3b0c435d3fd0aac9f943d07419 (patch)
tree5c470125d8acda2786383e998c70c455fb611aff /ext
parent922562d10af7810210fc8afb3c3666e0b7d9594e (diff)
downloadperl-53083cad3a096a3b0c435d3fd0aac9f943d07419.tar.gz
Use HvHasAUX() rather than SvOOK() when operating on HVs
Diffstat (limited to 'ext')
-rw-r--r--ext/Hash-Util/Util.xs2
-rw-r--r--ext/Hash-Util/lib/Hash/Util.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/Hash-Util/Util.xs b/ext/Hash-Util/Util.xs
index 4e49a095e3..b266f4a81c 100644
--- a/ext/Hash-Util/Util.xs
+++ b/ext/Hash-Util/Util.xs
@@ -115,7 +115,7 @@ hash_traversal_mask(rhv, ...)
if (items>1) {
hv_rand_set(hv, SvUV(ST(1)));
}
- if (SvOOK(hv)) {
+ if (HvHasAUX(hv)) {
XSRETURN_UV(HvRAND_get(hv));
} else {
XSRETURN_UNDEF;
diff --git a/ext/Hash-Util/lib/Hash/Util.pm b/ext/Hash-Util/lib/Hash/Util.pm
index 0b42922c96..f2c6df690e 100644
--- a/ext/Hash-Util/lib/Hash/Util.pm
+++ b/ext/Hash-Util/lib/Hash/Util.pm
@@ -42,7 +42,7 @@ our @EXPORT_OK = qw(
BEGIN {
# make sure all our XS routines are available early so their prototypes
# are correctly applied in the following code.
- our $VERSION = '0.28';
+ our $VERSION = '0.29';
require XSLoader;
XSLoader::load();
}