[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set operations on bool-vectors

From: Daniel Colascione
Subject: Re: Set operations on bool-vectors
Date: Sat, 21 Sep 2013 01:49:48 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 9/21/13 1:35 AM, Andreas Schwab wrote:
> Daniel Colascione <address@hidden> writes:
>> On 9/21/13 12:36 AM, Andreas Schwab wrote:
>>> Also, the return type should be EMACS_INT,
>>> not ptrdiff_t.
>> Well, vector_nbytes works with ptrdiff_t, and the allocation code works
>> in EMACS_INT.  I'm not sure the distinction actually matters in this case.
> ptrdiff_t may be smaller than EMACS_INT.

We'll never overflow when we look at an already-allocated object --- but
we _can_ overflow in the initial allocation calculation. I'll fix it.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]