From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA22936; Wed, 16 Oct 2002 10:24:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA22315 for ; Wed, 16 Oct 2002 10:24:27 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9G8OQ517387; Wed, 16 Oct 2002 10:24:26 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA22894; Wed, 16 Oct 2002 10:24:26 +0200 (MET DST) From: Pierre Weis Message-Id: <200210160824.KAA22894@pauillac.inria.fr> Subject: Re: [Caml-list] Runtime overflow and what to do In-Reply-To: <20021015212553.A9185@pauillac.inria.fr> from Xavier Leroy at "Oct 15, 102 09:25:53 pm" To: xavier.leroy@inria.fr (Xavier Leroy) Date: Wed, 16 Oct 2002 10:24:26 +0200 (MET DST) Cc: pierre.weis@inria.fr, caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > More nit picking: max_int + 1 isn't representable, and (machine) > addition evaluates it to min_int, which is clearly a case of overflow. Oups! Given that max_int has the intended definition, max_int + 1 is evidently an overflow ... Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners