unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* enum may be signed
@ 2010-05-01 15:47 grischka
  2010-05-01 17:56 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: grischka @ 2010-05-01 15:47 UTC (permalink / raw)
  To: emacs-devel

In git:2f2ce26ff273aadaf324ec599bf1dd1f67cab560 (Stefan Monnier)

+enum symbol_redirect
+{
+  SYMBOL_PLAINVAL  = 4,
...

  struct Lisp_Symbol
  {
    unsigned gcmarkbit : 1;
...
+  enum symbol_redirect redirect : 3;


Note that this breaks with compilers where enums can be signed (e.g. MSVC),
Because value 4 doesn't fit into 3 bits (signed), it is read as -4 and
breaks related switch statements (e.g. data.c:set_internal)

--- grischka





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

end of thread, other threads:[~2010-05-03 17:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-01 15:47 enum may be signed grischka
2010-05-01 17:56 ` Stefan Monnier
2010-05-01 18:37   ` Ken Raeburn
2010-05-01 18:51   ` grischka
2010-05-03 17:04   ` Tom Tromey

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).