[Top][All Lists]

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

Re: Type-error in C code

From: Julien Danjou
Subject: Re: Type-error in C code
Date: Fri, 12 Nov 2010 16:58:31 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Fri, Nov 12 2010, Eli Zaretskii wrote:

Hi Eli,

> Yes, you are wrong.  You should only use XSETFASTINT if you know the
> value will not overflow a Lisp integer.
> In a nutshell, nothing can work around the basic limitation that only
> integer values smaller or equal to most-positive-fixnum can be put
> into a Lisp integer.

Ok, I did not know that. So XSETFASTINT is really to be fast, not to be
bigger. Thanks for the explanation.

OTOH, x_fill_property_data deals with floats too, so using a float here
sounds like a good solution, as you suggested.

Julien Danjou
// ᐰ <address@hidden>   http://julien.danjou.info

reply via email to

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