Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: John Prevost <prevost@maya.com>
To: Hugues CASSE <casse@irit.fr>
Cc: CAML <caml-list@inria.fr>
Subject: Re: Logical operators...
Date: 26 Aug 1999 19:18:04 -0400	[thread overview]
Message-ID: <m3yaeyrv0z.fsf@isil.maya.com> (raw)
In-Reply-To: Hugues CASSE's message of "Thu, 26 Aug 1999 14:11:23 +0200"

Hugues CASSE <casse@irit.fr> 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.




  reply	other threads:[~1999-08-28 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-26 12:11 Hugues CASSE
1999-08-26 23:18 ` John Prevost [this message]
1999-08-27  9:07 ` Jean-Christophe Filliatre
1999-08-27  9:49 ` Reinhard Budde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3yaeyrv0z.fsf@isil.maya.com \
    --to=prevost@maya.com \
    --cc=caml-list@inria.fr \
    --cc=casse@irit.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox