From e93a7aed5025e7a4a75183e849970644a7f6f868 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 22 Jun 2013 14:25:26 -0700 Subject: [PATCH] Update B's size/offset for CvFLAGS to U32, following commit 51c78f1b91bbcd7a. B.xs contains a table of offsets and sizes for members of the various SV structures. This needs updating as 51c78f1b91bbcd7a changed CvFLAGS from U16 to U32. This ommision won't be noticed on little endian platforms, but on big endian platforms B::CV::CvFLAGS will return 0 instead of the true value. For: RT #118603 --- ext/B/B.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/B/B.xs b/ext/B/B.xs index fdeca72..fbe6be6 100644 --- a/ext/B/B.xs +++ b/ext/B/B.xs @@ -1328,7 +1328,7 @@ MODULE = B PACKAGE = B::IV #define PVCV_file_ix sv_char_pp | offsetof(struct xpvcv, xcv_file) #define PVCV_outside_ix sv_SVp | offsetof(struct xpvcv, xcv_outside) #define PVCV_outside_seq_ix sv_U32p | offsetof(struct xpvcv, xcv_outside_seq) -#define PVCV_flags_ix sv_U16p | offsetof(struct xpvcv, xcv_flags) +#define PVCV_flags_ix sv_U32p | offsetof(struct xpvcv, xcv_flags) #define PVHV_max_ix sv_STRLENp | offsetof(struct xpvhv, xhv_max) -- 2.7.4