all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* EMACS_INT to EMACS_UINT
@ 2016-12-04 23:16 Ravi Desai
  2016-12-05  2:00 ` Paul Eggert
  0 siblings, 1 reply; 6+ messages in thread
From: Ravi Desai @ 2016-12-04 23:16 UTC (permalink / raw
  To: emacs-devel

Hello all,

I've been trying to familiarize myself with the emacs source at the 
C-level, and while I was looking at src/lisp.h I noticed that while 'XLI 
(a)' should return an EMACS_INT, we expect it to be a EMACS_UINT in the 
definition of 'XTYPE'.

---
/* Extract A's type.  */
INLINE enum Lisp_Type
XTYPE (Lisp_Object a)
{
   EMACS_UINT i = XLI (a); // <---- This seems strange to me.
   return USE_LSB_TAG ? i & ~VALMASK : i >> VALBITS;
}
---

Is this something that we should change? The code is working, so I don't 
know if its a big enough deal.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-12-05 18:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-04 23:16 EMACS_INT to EMACS_UINT Ravi Desai
2016-12-05  2:00 ` Paul Eggert
2016-12-05 13:56   ` Ravi Desai
2016-12-05 17:23     ` Paul Eggert
2016-12-05 17:47       ` Daniel Colascione
2016-12-05 18:38         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.