Merge pull request #1970 from tmzullinger/1.10.x

modperl: avoid newAV_alloc_x which requires perl >= 5.35.1
This commit is contained in:
Alexey Sokolov
2025-08-01 08:14:57 +01:00
committed by GitHub

View File

@@ -82,7 +82,9 @@ namespace std {
return i != self->end();
}
SV* keys_() {
AV* av = newAV_alloc_x(self->size());
// TODO: switch to newAV_alloc_x, requires perl 5.35.1
AV *av = newAV();
av_extend(av, self->size());
// assume SCString
int i = 0;
for (const auto& a : *self) {