Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006299OCamlOCaml runtime systempublic2014-01-20 15:492014-01-20 16:14
Reporterjrrk100 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Platformamd64OSOSXOS Version10.9.1
Product Version 
Target VersionFixed in Version 
Summary0006299: Ocaml 4.01.0 lsr function in OCaml only uses bottom 7 bits of shift value
DescriptionWhen using x lsr y where y is a large number (> 63), the answer should always be zero, however if y reaches 128 the actual shift goes back to zero.
Steps To Reproduce$ ocaml
        OCaml version 4.01.0

# 1024 lsr 9;;
- : int = 2
# 1 lsr 128;;
- : int = 1
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0010818)
dbuenzli (reporter)
2014-01-20 16:14

The result is unspecified if y > platform width (see the docs) .

- Issue History
Date Modified Username Field Change
2014-01-20 15:49 jrrk100 New Issue
2014-01-20 16:14 dbuenzli Note Added: 0010818


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker