[Top][All Lists]

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

Re: Type-error in C code

From: Andreas Schwab
Subject: Re: Type-error in C code
Date: Fri, 12 Nov 2010 17:47:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Date: Fri, 12 Nov 2010 11:06:26 -0500
>> From: John Yates <address@hidden>
>> On Fri, Nov 12, 2010 at 10:58 AM, Julien Danjou <address@hidden> wrote:
>> > OTOH, x_fill_property_data deals with floats too, so using a float here
>> > sounds like a good solution, as you suggested.
>> Alternatively you could check the atom's value and so long as it is in
>> range you could generate an elisp integer, falling back to a float
>> only when the atom is too large.
> That's what I meant, actually (we already do such things in other
> places in Emacs sources).

See make_fixnum_or_float.


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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