all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* size_t vs EMACS_INT
@ 2011-07-15  6:42 Eli Zaretskii
  2011-07-15  7:15 ` Paul Eggert
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2011-07-15  6:42 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

Paul,

I think that part of your change in revision 105217 on the trunk, viz.

  -static size_t bidi_cache_size = 0;
  +static EMACS_INT bidi_cache_size = 0;

is not a good idea.  I understand the motivation for using a signed
type, but EMACS_INT isn't just a signed type, it's 3 bits narrower
than size_t, at least on some platforms.  By contrast, the bidi cache
should be able to support the longest Lisp string/buffer, and for that
it needs to have MOST_POSITIVE_FIXNUM _elements_, not bytes.  So the
net effect of the above change is to limit the cache to 1/8th of the
maximum size it could have before the change.  So I think we will have
to use size_t here, and deal with whatever complications that causes
with GCC 4.6.x.



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

end of thread, other threads:[~2011-07-16 11:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-15  6:42 size_t vs EMACS_INT Eli Zaretskii
2011-07-15  7:15 ` Paul Eggert
2011-07-15  8:10   ` Eli Zaretskii
2011-07-15 16:38     ` Paul Eggert
2011-07-15 17:14       ` Eli Zaretskii
2011-07-15 21:52         ` Paul Eggert
2011-07-16  7:13           ` Eli Zaretskii
2011-07-16 11:02             ` Paul Eggert

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.