[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:32:10 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Fri, Nov 12 2010, Julien Danjou wrote:

> Ok, reading the Lisp_Object definition explains why. I've learned
> something today. :)

I've replying again to myself, but I'm still discovering the internal.

It seems we can store 32 bits unsigned using XSETFASTINT.

Reading x_fill_property_data, I see:

--8<---------------cut here---------------start------------->8---
  for (iter = data; CONSP (iter); iter = XCDR (iter))
      Lisp_Object o = XCAR (iter);

      if (INTEGERP (o))
        val = (long) XFASTINT (o);
--8<---------------cut here---------------end--------------->8---

So IIUC, we could use XSETFASTINT to store the atom. Am I wrong?

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

reply via email to

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