From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA30235 for caml-redistribution; Sat, 28 Aug 1999 19:21:22 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA32280 for ; Fri, 27 Aug 1999 01:17:25 +0200 (MET DST) Received: from isil.maya.com (isil.maya.com [192.70.254.5]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id BAA24782 for ; Fri, 27 Aug 1999 01:17:24 +0200 (MET DST) Received: (from prevost@localhost) by isil.maya.com (8.9.3/8.9.3) id TAA17171; Thu, 26 Aug 1999 19:18:04 -0400 Sender: weis To: Hugues CASSE Cc: CAML Subject: Re: Logical operators... References: <37C52EEB.AE4@irit.fr> From: John Prevost Date: 26 Aug 1999 19:18:04 -0400 In-Reply-To: Hugues CASSE's message of "Thu, 26 Aug 1999 14:11:23 +0200" Message-ID: User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hugues CASSE writes: > Is there a bug or is there a way to get the correct result... > > # 0xffff0000 lsr 16;; > - : int = 32767 > while > # 0x0000ffff;; > - : int = 65535 Unfortunately, "native" integers in O'Caml are 31 bits long on 32 bit machines, and 63 on 54-bit machines. John.