summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-04 21:52:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-04 21:52:10 (GMT)
commitc565904256ce552372be8e3f3171082bb0cf51f7 (patch)
treec44d1cb87ddb9ee27228b47fac1d2dd48b947de2 /generic
parent5a03048c707ee966457a12a6901c488012ecde2c (diff)
downloadtk-c565904256ce552372be8e3f3171082bb0cf51f7.zip
tk-c565904256ce552372be8e3f3171082bb0cf51f7.tar.gz
tk-c565904256ce552372be8e3f3171082bb0cf51f7.tar.bz2
More serious elimination of -Wconversion C warnings
Diffstat (limited to 'generic')
-rw-r--r--generic/tkInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index d2b7ebb..09afe37 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -1435,7 +1435,7 @@ MODULE_SCOPE int TkGetIntForIndex(Tcl_Obj *, Tcl_Size, int lastOK, Tcl_Size*);
# define TkNewIndexObj(value) Tcl_NewWideIntObj((Tcl_WideInt)(value + 1) - 1)
# define TK_OPTION_UNDERLINE_DEF(type, field) "-1", TCL_INDEX_NONE, offsetof(type, field), 0, NULL
#else
-# define TkNewIndexObj(value) (((Tcl_Size)(value) == TCL_INDEX_NONE) ? Tcl_NewObj() : Tcl_NewWideIntObj(value))
+# define TkNewIndexObj(value) (((Tcl_Size)(value) == TCL_INDEX_NONE) ? Tcl_NewObj() : Tcl_NewWideIntObj((Tcl_WideInt)(value)))
# define TK_OPTION_UNDERLINE_DEF(type, field) NULL, TCL_INDEX_NONE, offsetof(type, field), TK_OPTION_NULL_OK, NULL
#endif