Skip to content

Commit ac7e9f1

Browse files
committed
work around Perl 5.42 bug - fix #551
1 parent d5da320 commit ac7e9f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- fixed $slice->inplace->*{lin,log}vals not updating $slice
66
- magnover now always returns real (#546) - thanks @wlmb
77
- fixes for rldseq, rldND, rldvec (#547 #548 #549 #550) - thanks @jo-37
8+
- work around Perl 5.42 bug (#551) - thanks @andk for report
89

910
2.100 2025-03-27
1011
- fix Math function prototypes for GCC 15 (#528) - thanks @jplesnik for report

lib/PDL/Core/pdlperl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ static inline pdl *PDL_XS_pdlinit(pTHX_ char *objname, HV *bless_stash, SV *to_p
5454
clause1; \
5555
XSRETURN(nreturn); \
5656
} else { \
57-
XSRETURN(0); \
57+
if (GIMME_V == G_SCALAR) XSRETURN_UNDEF; /* GH#551 */ \
58+
else XSRETURN(0); \
5859
}
5960

6061
#define PDL_IS_INPLACE(in) ((in)->state & PDL_INPLACE)

0 commit comments

Comments
 (0)