mirror of
https://github.com/znc/znc.git
synced 2026-05-05 13:02:31 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user