summaryrefslogtreecommitdiffstats
path: root/generic/tclDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-05 14:19:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-05 14:19:45 (GMT)
commit4df4a598eb231cdc6d925b2330d883786b448e71 (patch)
treef3b3f8f97685f8433f3c2dd4509bb2e4908a79b5 /generic/tclDecls.h
parentd206ee3c75c6f7e11fcc83dcc0152edf9dd94831 (diff)
downloadtcl-4df4a598eb231cdc6d925b2330d883786b448e71.zip
tcl-4df4a598eb231cdc6d925b2330d883786b448e71.tar.gz
tcl-4df4a598eb231cdc6d925b2330d883786b448e71.tar.bz2
Use Tcl_GetIntForIndex() in testcases (tclTestObj.c) in stead of Tcl_GetWideIntFromObj().
Meant for Ashok, to show that we already have Tcl_GetSizeIntFromObj(). (I already planned this conversion for a long time, thanks, Ashok for reminding me) Also some other cleanups
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r--generic/tclDecls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index bee2ae2..84c2b4d 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -4366,11 +4366,11 @@ extern const TclStubs *tclStubsPtr;
# define Tcl_UniCharNcmp(ucs,uct,n) \
((int(*)(const Tcl_UniChar*,const Tcl_UniChar*,unsigned int))tclStubsPtr->tcl_UniCharNcmp)(ucs,uct,(unsigned int)(n))
# define Tcl_UtfNcmp(s1,s2,n) \
- ((int(*)(const char*,const char*,unsigned int))tclStubsPtr->tcl_UtfNcmp)(s1,s2,(unsigned int)(n))
+ ((int(*)(const char*,const char*,unsigned int))(void *)tclStubsPtr->tcl_UtfNcmp)(s1,s2,(unsigned int)(n))
# define Tcl_UtfNcasecmp(s1,s2,n) \
- ((int(*)(const char*,const char*,unsigned int))tclStubsPtr->tcl_UtfNcasecmp)(s1,s2,(unsigned int)(n))
+ ((int(*)(const char*,const char*,unsigned int))(void *)tclStubsPtr->tcl_UtfNcasecmp)(s1,s2,(unsigned int)(n))
# define Tcl_UniCharNcasecmp(ucs,uct,n) \
- ((int(*)(const Tcl_UniChar*,const Tcl_UniChar*,unsigned int))tclStubsPtr->tcl_UniCharNcasecmp)(ucs,uct,(unsigned int)(n))
+ ((int(*)(const Tcl_UniChar*,const Tcl_UniChar*,unsigned int))(void *)tclStubsPtr->tcl_UniCharNcasecmp)(ucs,uct,(unsigned int)(n))
# endif
#endif