Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ef6ddda89c6ab35a2324642bfc05ef7daecc15c
Ticket: 1851567fffffffffffffffffffffffffffffffff
expr returns incorrect results on M68K architecture
User & Date: teopetuk on 2007-12-15 22:54:10
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi!
    
    expr in current HEAD returns the following on Motorola M68K architecture:
    
    % expr 0.1
    0.000
    % expr 1e-10
    0e-12
    
    The bug is triggered only when the final result is shown, and only when the resulting number is less than one in absolute value. Then expr replaces mantissa by zero.
    
    % expr (1.0/10)
    0.000
    % expr (1.0/10)*10
    1.0
    
    Also, expr.test fails with the following:
    expr.test
    Test file error: unable to alloc 3988184000 bytes
    
    (I don't know if it's the same bug or another one).
    
    8.4.16 works fine and passes all the tests.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "teopetuk"
  10. subsystem changed to: "None"
  11. title changed to:
    expr returns incorrect results on M68K architecture
    
  12. type changed to: "Bug"