caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: <caml-list@inria.fr>
Subject: Re: [Caml-list] Need unsigned int
Date: Thu, 23 Jan 2003 16:00:48 +0100	[thread overview]
Message-ID: <74C51A70-2EE3-11D7-9F00-0003930FCE12@inria.fr> (raw)
In-Reply-To: <013b01c2c21d$f0b8d3c0$b3580b50@warp>

On Wednesday, January 22, 2003, at 03:55 PM, Nicolas Cannasse wrote:

> let ui_compare x y =
>     x lsr 16 < y lsr 16 || x land 0xFFFF < y land 0xFFFF

Watch out !  This definition is wrong.


> Is what you need.
>
> ui_compare 1 2;; // true
> ui_compare (-1) 2;; // false

ui_compare 65536 1;; // true


-- Damien

-------------------
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


  reply	other threads:[~2003-01-23 15:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20 19:05 Christoph Bauer
2003-01-20 20:58 ` Sven Luther
2003-01-22 14:55 ` Nicolas Cannasse
2003-01-23 15:00   ` Damien Doligez [this message]
2003-01-24  0:39     ` David Chase
2003-01-25 13:50     ` Nicolas Cannasse

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=74C51A70-2EE3-11D7-9F00-0003930FCE12@inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@inria.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;
as well as URLs for NNTP newsgroup(s).