Skip to content
Tcl Source Code History Of Ticket 8798610883
Login

History Of Ticket 8798610883

Artifacts Associated With Ticket 8798610883

  1. Ticket change [8360a6f4c2] (rid 212101) by chrstphrchvz on 2023-04-08 21:51:59:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In tclInt.h (8.6.13):
      
      <blockquote><pre>
      #ifdef _MSC_VER
      #    define TclIsInfinite(d)	(!(_finite((d))))
      …
      #else
      #    define TclIsInfinite(d)	((d) > DBL_MAX || (d) < -DBL_MAX)
      </pre></blockquote>
      
      The definition used for MSVC will erroneously return true for NaN, inconsistent with the definition on other platforms and the definition in Tcl 8.7 (which deprecates this macro):
      
      <blockquote><pre>
      #   define TclIsInfinite(d)	isinf(d)
      </pre></blockquote>
      
      Should the macro be corrected?
      
    5. foundin initialized to: "8.6.13"
    6. is_private initialized to: "0"
    7. login: "chrstphrchvz"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chrstphrchvz"
    14. subsystem initialized to: "52. Portability Support"
    15. title initialized to: "TclIsInfinite(NaN) returns true for MSVC"
    16. type initialized to: "Bug"