absolute value of min_integer a negative number?

Dave Sworin <[email protected]> Wed, 29 Oct 2008 02:06:11 -0700 (PDT)
Newsgroups gmane.comp.gnu.prolog.bugs
Message-ID <[email protected]>
I ran the following in gprolog 1.3.0.  (I typed this in by hand.)
--------------------------------------------------
| ?- current_prolog_flag(min_integer,MIN_INTEGER),X is abs(MIN_INTEGER).
 
MIN_INTEGER = -268435456
X = -268435456
 
yes
| ?-
--------------------------------------------------
Can someone check this on another computer?  I was working under Fedora Core 4,
using the kernel 2.6.11-1.1369_FC4smp on a Pentium 4 processor with
Hyper-Threading Technology.  I was pretty surprised to see the result of an absolute
value that is negative.
 
Dave
 

_______________________________________________
Bug-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-prolog