Skip to content
Tcl Source Code History Of Ticket 9c1dc88f86e8766b
Login

History Of Ticket 9c1dc88f86e8766b

Artifacts Associated With Ticket 9c1dc88f86e8766b

  1. Ticket change [efaabd7fca] (rid 199332) by sl1200mk2 on 2022-03-17 16:27:34:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Hi Jan,
      when compiling latest core-8-branch on Windows (using gcc) I got the following warnings:
      
      C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c: In function 'LinkTraceProc':
      C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:943:41: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
        943 |     ((value) >= (lowerLimit) && (value) <= (upperLimit))
            |                                         ^~
      C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:1120:29: note: in expansion of macro 'InRange'
       1120 |                         || !InRange(0, valueInt, USHRT_MAX)) {
            |                             ^~~~~~~
      C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:943:41: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
        943 |     ((value) >= (lowerLimit) && (value) <= (upperLimit))
            |                                         ^~
      C:/Users/nico/dev/dlight/win64/tcltk/tcl-9f61609437/generic/tclLink.c:1130:25: note: in expansion of macro 'InRange'
       1130 |                     || !InRange(0, valueInt, USHRT_MAX)) {
            |                         ^~~~~~~
      
      
      best regards,
      Nicolas
      
    5. foundin initialized to: "core-8-branch"
    6. is_private initialized to: "0"
    7. login: "sl1200mk2"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "sl1200mk2"
    14. subsystem initialized to: "69. Other"
    15. title initialized to:
      warning about different signedness when compile TCL on Windows
      
    16. type initialized to: "Support"
  2. Ticket change [8261e90aaa] (rid 199560) by jan.nijtmans on 2022-03-22 20:21:27:

    1. icomment:
      I cannot reproduce this.
      
      How is USHRT_MAX defined in your compiler? It should be something like 0xffff, which is an integer.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [49fed9d460] (rid 199661) by sl1200mk2 on 2022-03-25 14:56:17:

    1. icomment:
      Hi Jan,
      sorry for the late reply...
      not here, here in limits.h USHRT_MAX is defined as
      #define USHRT_MAX 0xffffU
      
      this is gcc 11.2.0 (Rev10, Built by MSYS2 project)
      
      ++
      
    2. login: "sl1200mk2"
    3. mimetype: "text/plain"
  4. Ticket change [122b513a98] (rid 199665) by jan.nijtmans on 2022-03-25 15:34:44:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459664.14912632"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Even though I think this is a bug in this gcc build, fixed now. Since the same could happen with UINT_MAX and UCHAR_MAX, added a type-cast there too.
      
      Thanks!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
  5. Ticket change [9e904fdaae] (rid 199668) by sl1200mk2 on 2022-03-25 15:42:04:

    1. closedate changed to: "2459664.15421789"
    2. closer changed to: "sl1200mk2"
    3. icomment:
      it's defined as follow:
      #define UCHAR_MAX 0xff
      #define UINT_MAX 0xffffffffU
      #define ULONG_MAX 0xffffffffUL
      #define ULLONG_MAX 0xffffffffffffffffull
      
      
      ++
      
    4. login: "sl1200mk2"
    5. mimetype: "text/plain"