Skip to content

Commit

Permalink
Fix [64165953a0]: Compilation error of C extensions due to TCL_SIZE_M…
Browse files Browse the repository at this point in the history
…AX definition
  • Loading branch information
jan.nijtmans committed Aug 27, 2023
1 parent 4fc5e69 commit 810a853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generic/tcl.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,11 @@ typedef unsigned TCL_WIDE_INT_TYPE Tcl_WideUInt;

#if TCL_MAJOR_VERSION < 9
typedef int Tcl_Size;
# define TCL_SIZE_MAX INT_MAX
# define TCL_SIZE_MAX ((int)(((unsigned int)-1)>>1))
# define TCL_SIZE_MODIFIER ""
#else
typedef ptrdiff_t Tcl_Size;
# define TCL_SIZE_MAX PTRDIFF_MAX
# define TCL_SIZE_MAX ((ptrdiff_t)(((size_t)-1)>>1))
# define TCL_SIZE_MODIFIER TCL_T_MODIFIER
#endif /* TCL_MAJOR_VERSION */

Expand Down

0 comments on commit 810a853

Please sign in to comment.