# HG changeset patch # User yoshiki # Date 990093139 0 # Node ID 2e265ae71eed4ee43e79e56ea65cb9f9025ec00b # Parent 02261edd09de123ec921fdc0dd0044dc34e2090a [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. diff -r 02261edd09de -r 2e265ae71eed src/ChangeLog --- 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 + + * lisp.h (EMACS_INT_MAX): This should be one bit less since + EMACS_INT is signed. + 2001-05-13 Mike Alexander * frame-msw.c (mswindows_make_frame_visible): Call SetActiveWindow diff -r 02261edd09de -r 2e265ae71eed src/lisp.h --- 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