Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db4039b116a50dec24c16f17efbff0b036c28575
Ticket: 868467ffffffffffffffffffffffffffffffffff
large shift ops wrong
User & Date: hinteger on 2003-12-31 15:12:43
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    expr does not deliver correct results for <</>>, if the
    shift count is equal (or greater) the bitcount of an
    integer.
    
    e.g. expr 5>>32 gives 5, instead of expected 0
          expr 5>>33 gives 2, instead of expected 0
    
    Ok, as someone said on clt, this isn't covered in C89
    Standard too, but do we have to stick to faulty
    standards, that were set up years ago.
    
    For implementing shifts of bit fields wider than int,
    this is required to work correctly (ok, I could do
    conditional expr's, but the code gets quite ugly)
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "hinteger"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "<</>> x (x>=bitcount of architecture) is wrong"
  11. type changed to: "Bug"