Mercurial > hg > xemacs-beta
changeset 542:2e265ae71eed
[xemacs-hg @ 2001-05-17 09:52:16 by yoshiki]
My patch "[PATCH] EMACS_INT_MAX is too big",
<87u22s1ffj.fsf@u.sanpo.t.u-tokyo.ac.jp>
* lisp.h (EMACS_INT_MAX): This should be one bit less since
EMACS_INT is signed.
author | yoshiki |
---|---|
date | Thu, 17 May 2001 09:52:19 +0000 |
parents | 02261edd09de |
children | 7e84f0c36c66 |
files | src/ChangeLog src/lisp.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Tue May 15 06:58:27 2001 +0000 +++ b/src/ChangeLog Thu May 17 09:52:19 2001 +0000 @@ -1,3 +1,8 @@ +2001-05-11 Yoshiki Hayashi <yoshiki@xemacs.org> + + * lisp.h (EMACS_INT_MAX): This should be one bit less since + EMACS_INT is signed. + 2001-05-13 Mike Alexander <mta@arbortext.com> * frame-msw.c (mswindows_make_frame_visible): Call SetActiveWindow
--- a/src/lisp.h Tue May 15 06:58:27 2001 +0000 +++ b/src/lisp.h Thu May 17 09:52:19 2001 +0000 @@ -581,7 +581,7 @@ #define INT_VALBITS (BITS_PER_EMACS_INT - INT_GCBITS) #define VALBITS (BITS_PER_EMACS_INT - GCBITS) -#define EMACS_INT_MAX ((EMACS_INT) ((1UL << INT_VALBITS) -1UL)) +#define EMACS_INT_MAX ((EMACS_INT) ((1UL << (INT_VALBITS - 1)) -1UL)) #define EMACS_INT_MIN (-(EMACS_INT_MAX) - 1) #ifdef USE_UNION_TYPE