[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The --with-wide-int build and Lisp_Sub_Char_Table assertion
From: |
Andreas Schwab |
Subject: |
Re: The --with-wide-int build and Lisp_Sub_Char_Table assertion |
Date: |
Mon, 12 Jan 2015 18:58:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Dmitry Antipov <address@hidden> writes:
> On 01/12/2015 07:29 PM, Eli Zaretskii wrote:
>
>> In the 32-bit MinGW configuration with wide integers, we have:
>>
>> offsetof (struct Lisp_Sub_Char_Table, contents) = 16
>> offsetof (struct Lisp_Sub_Char_Table, depth) = 4
>> word_size = 8
>
> OK, but...
>
>> header_size = 8
>> offsetof(struct Lisp_Vector, contents) = 8
>
> ==> sizeof(ptrdiff_t) is 8 in a 32-bit configuration? Looks pretty
> strange. Or, if sizeof(ptrdiff_t) is 4, what is sizeof(struct
> vectorlike_header)?
> IIUC it should be 4, and so header_size should be 4 too...
header_size includes the padding between Lisp_Vector.header and
Lisp_Vector.contents.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."