From: "Nicolas Cannasse" <warplayer@free.fr>
To: "Damien Doligez" <damien.doligez@inria.fr>, <caml-list@inria.fr>
Subject: Re: [Caml-list] Need unsigned int
Date: Sat, 25 Jan 2003 13:50:18 -0000 [thread overview]
Message-ID: <011301c2c470$50e4ac20$d7abfcc1@warp> (raw)
In-Reply-To: <74C51A70-2EE3-11D7-9F00-0003930FCE12@inria.fr>
> > let ui_compare x y =
> > x lsr 16 < y lsr 16 || x land 0xFFFF < y land 0xFFFF
>
> Watch out ! This definition is wrong.
>
My fault !
Sometimes my keyboard is writing faster than my brain is thinking :)
Someting like :
let ui_compare x y =
match x lsr 16 - y lsr 16 with
| 0 -> x land 0xFFFF < y land 0xFFFF
| n when n > 0 -> false
| _ -> true
Should be okay
Nicolas Cannasse
-------------------
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
prev parent reply other threads:[~2003-01-25 12:46 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
2003-01-24 0:39 ` David Chase
2003-01-25 13:50 ` Nicolas Cannasse [this message]
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='011301c2c470$50e4ac20$d7abfcc1@warp' \
--to=warplayer@free.fr \
--cc=caml-list@inria.fr \
--cc=damien.doligez@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