Skip to content
Tcl Source Code History Of Ticket 36bcf04a704a22f3
Login

History Of Ticket 36bcf04a704a22f3

Artifacts Associated With Ticket 36bcf04a704a22f3

  1. Ticket change [ca1ea7e229] (rid 217080) by stu on 2023-08-09 11:18:23:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      Edited to shorten paths:
      
      generic/tclInt.h:4358:12: warning: incompatible pointer types passing 'Tcl_Size *' (aka 'long *') to parameter of type 'int *' [-Wincompatible-pointer-types]
          return TclGetIntFromObj(interp, objPtr, sizePtr);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      generic/tclInt.h:2757:46: note: expanded from macro 'TclGetIntFromObj'
                  : Tcl_GetIntFromObj((interp), (objPtr), (intPtr)))
                                                          ^~~~~~~~
      generic/tclDecls.h:152:27: note: passing argument to parameter 'intPtr' here
                                      Tcl_Obj *objPtr, int *intPtr);
      
    5. foundin initialized to: "Current"
    6. is_private initialized to: "0"
    7. login: "stu"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "702b65e835b7b4b4720d6e9d37fc582f82909394"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "stu"
    14. subsystem initialized to: "52. Portability Support"
    15. title initialized to:
      Pointer size warnings when compiling on a 32-bit machine
      
    16. type initialized to: "Bug"
  2. Add attachment "36bcf04a70.diff" [5d2a27ebe1] (rid 217096) by chrstphrchvz on 2023-08-10 11:44:58.

  3. Ticket change [b6eeaaf827] (rid 217097) by chrstphrchvz on 2023-08-10 11:45:06:

    1. icomment:
      The warning is about how C considers pointers to different integer types to be incompatible, regardless of whether the types have the same size.
      
      <tt>TCL_SIZE_MAX == INT_MAX</tt> does not necessarily mean <tt>Tcl_Size</tt> is <tt>int</tt>. Using a temporary <tt>int</tt> avoids the warning; see attached patch.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [adf4e95d20] (rid 217409) by chrstphrchvz on 2023-08-28 06:39:37:

    1. icomment:
      The patch I attached was superseded by [2e65fce4cf]. But should Tcl be assuming that <tt>TCL_SIZE_MAX == INT_MAX</tt> implies <tt>sizeof(Tcl_Size) == sizeof(int)</tt>? Since the condition is no longer meant for the preprocessor, should Tcl just check <tt>sizeof(…)</tt> instead?
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [8ad545547d] (rid 217412) by jan.nijtmans on 2023-08-28 08:06:13:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460184.83765605"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      > should Tcl just check sizeof(…) instead?
      
      It doesn't really matter (IMHO), but since TCL_SIZE_MAX is non-C-standard it would be - slightly - better.
      
      Closing. [e94242449556e1fd]
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"