🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99785

Pointer arithmetic

#99785
From: William L. Jones
Date: Mon, 30 Apr 1990 03:22
18 lines
1132 bytes
In src/search.c there are serveral statments like the following:

                      if ((int) (p_limit + infinity) > (int) p_limit)
                        while ((int) cursor <= (int) p_limit)

which I have to change to the following to get them to work under
UNICOS:

                      if ((p_limit + infinity) > p_limit)
                        while (cursor <= p_limit)


Now from my understanding of c. ==, !=, <, >= should work so long as 
you are comparing pointers of the same type.  Which is true of the above 
code, the cast to int cause problems on CRAY's.   

Bill Jones
Technical Details
Message-ID: <29159@ut-emx.UUCP>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!ut-emx!jones

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,707ff02c082e575,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-04-30 08:48:37 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!ut-emx!jones
From: jones@ut-emx.UUCP (William L. Jones)
Newsgroups: gnu.emacs.bug
Subject: Pointer arithmetic
Message-ID: <29159@ut-emx.UUCP>
Date: 30 Apr 90 03:22:41 GMT
Distribution: gnu
Organization: The University of Texas at Austin, Austin, Texas
Lines: 18
Posted: Mon Apr 30 04:22:41 1990