home *** CD-ROM | disk | FTP | other *** search
- Path: ifi.uio.no!usenet
- From: ludvigp@ifi.uio.no (Ludvig Pedersen)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BUG IN "STATUS" COMMAND FOUND
- Date: 5 Feb 1996 19:50:42 GMT
- Organization: Dept. of Informatics, University of Oslo, Norway
- Message-ID: <1084.6609T1207T906@ifi.uio.no>
- References: <4f403j$qpm@jeack.apana.org.au>
- NNTP-Posting-Host: surt.ifi.uio.no
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- >Hi All,
- >I have located a bug in the status command, under workbench 3, and it goes
- >like this:
- >7. System:> Status 2147483647
- >Causes the shell from which the command was initiated, to freeze, until a ^C
- >is issued.
- >7. System:> Status 2147483648
- >Returns an error "Process -2147483648 does not exist" - which, obviously, is
- >true, but where did it get the negative sign from?
- >7. System:> Status 2147483649
- >Returns an error "Process -2147483647 does not exist" - which again is true,
- >but -2147483647 wasn't the number I entered, was it?
- >7. System:> Status 2147483650
- >Returns an error "Bad number" which indicates to us that 2147483649 is the
- >ceiling value.
- >I know this bug plays no trouble in the workings of the system, but it's a
- >bug nonetheless, and will give Escom/AmiTech something to do =)
-
- This is not a bug but a simple overflow!!!
-
- 2147483648 = $80000000 (Which is -2147483648)
-
- The largest number you can store in an signed integer
- is 2147483647 (=$7fffffff)
-
-
-
-
-
-
- <sb>Ludde - Amiga Demo Coder
- <sb>Virtual Reality & Official Be developer
- <sb>ludvigp@ifi.uio.no
-
-