From: Nicholas Clark Date: Sat, 22 Jun 2013 21:25:26 +0000 (-0700) Subject: Update B's size/offset for CvFLAGS to U32, following commit 51c78f1b91bbcd7a. X-Git-Tag: upstream/5.20.0~2952 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e93a7aed5025e7a4a75183e849970644a7f6f868;p=platform%2Fupstream%2Fperl.git 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 --- 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)