<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/140c9fadd8e2355539503a016bc1e217"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-11-07T03:35:12"
  subject="[Caml-list] A grave bug in logical shift right op?"
  prev="2003/11/b3c779c49bd7be546f1e9fe0756e7d3d"
  next="2003/11/8e4bb7df1307031640c93d02c75186de"
  next-in-thread="2003/11/6c51cac155fc19a70c332c51f09bb199"
  prev-thread="2003/11/b3c779c49bd7be546f1e9fe0756e7d3d"
  next-thread="2003/11/8bac1133214edc5aaff0c5dae8053b9e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] A grave bug in logical shift right op?">
<msg 
  url="2003/11/140c9fadd8e2355539503a016bc1e217"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-11-07T03:35:12"
  subject="[Caml-list] A grave bug in logical shift right op?">
<msg 
  url="2003/11/6c51cac155fc19a70c332c51f09bb199"
  from="Jed Davis &lt;jdev@p...&gt;"
  author="Jed Davis"
  date="2003-11-07T03:46:32"
  subject="[Caml-list] Re: A grave bug in logical shift right op?">
</msg>
<msg 
  url="2003/11/944504cb86937958edfda29223507e1c"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2003-11-07T03:53:40"
  subject="Re: [Caml-list] A grave bug in logical shift right op?">
<msg 
  url="2003/11/c476429bdc04d501fe234399b1022dcc"
  from="Eray Ozkural &lt;exa@k...&gt;"
  author="Eray Ozkural"
  date="2003-11-07T06:22:33"
  subject="Re: [Caml-list] A grave bug in logical shift right op?">
</msg>
</msg>
<msg 
  url="2003/11/f965cfe7869fbbf1d10dcfc9a4ef52ea"
  from="Andrew Lenharth &lt;andrewl@d...&gt;"
  author="Andrew Lenharth"
  date="2003-11-07T03:59:13"
  subject="Re: [Caml-list] A grave bug in logical shift right op?">
</msg>
</msg>
</thread>

<contents>
I'm using the debian package in testing....

orion:fealn-attack$ ledit ocaml
        Objective Caml version 3.07+2

# Printf.printf "%X" 0xffffffff;;
7FFFFFFF- : unit = ()
# Printf.printf "%lx" (Int32.of_int 0xffffffff);;
ffffffff- : unit = ()
# -1 lsr 24;;
- : int = 127
# Int32.shift_right_logical (Int32.of_int (-1)) 24;;
- : int32 = 255l

What's going on here? Something's eating the most significant bit in
both hexadecimal output routine and the logical shift right
operator. Somebody please help me! My cipher isn't working!!!

Confused,

-- 
Eray Ozkural (exa) &lt;erayo@cs.bilkent.edu.tr&gt;
Comp. Sci. Dept., Bilkent University, Ankara  KDE Project: http://www.kde.org
www: http://www.cs.bilkent.edu.tr/~erayo  Malfunction: http://mp3.com/ariza
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C

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

</contents>

</message>

