Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bacea5888091a562cdb6cd684aaa122b6695a1eb
Ticket: 1917650fffffffffffffffffffffffffffffffff
Tcl_ConvertToType(, , doubleType) incompatibility
User & Date: hkoba on 2008-03-18 02:25:39
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Dear TCT.
    
    In 8.5.2rc1, I found Tcl_ConvertToType does not ensure 
    conversion of obj to specific type. At least target type is double and string rep is like "100" (which fits to int), returned type is "int".
    
    In other words, SetDoubleFromAny can return int in some case.
    
    This can leads problems for C level extensions.
    For example, I found problem in TclRAL. 
    It uses Tcl_ConvertToType and then internalRep.doubleValue.
    
    If this change is intentional, please change the manpage
    of Tcl_ConvertToType.
    
    Best regards.
    
  4. foundin changed to: "obsolete: 8.5.2"
  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: "hkoba"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "Tcl_ConvertToType(, , doubleType) incompatibility"
  12. type changed to: "Bug"