diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-24 14:58:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-24 14:58:42 (GMT) |
commit | aeef890ebe6106ea783b80a7626e04a8a7906824 (patch) | |
tree | d6d9d74b7ecb6ab7002d0016e199ce57152d3161 /generic/tkIcu.c | |
parent | 64d47b45ab34decb7052b2d4efc4cc43741f54fd (diff) | |
download | tk-aeef890ebe6106ea783b80a7626e04a8a7906824.zip tk-aeef890ebe6106ea783b80a7626e04a8a7906824.tar.gz tk-aeef890ebe6106ea783b80a7626e04a8a7906824.tar.bz2 |
Small round of sentinel/spacing improvements
Diffstat (limited to 'generic/tkIcu.c')
-rw-r--r-- | generic/tkIcu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkIcu.c b/generic/tkIcu.c index 257003c..503c98d 100644 --- a/generic/tkIcu.c +++ b/generic/tkIcu.c @@ -96,7 +96,7 @@ startEndOfCmd( if (TkGetIntForIndex(objv[2], ulen-1, 0, &idx) != TCL_OK) { Tcl_DStringFree(&ds); Tcl_SetObjResult(interp, Tcl_ObjPrintf("bad index \"%s\": must be integer?[+-]integer?, end?[+-]integer?, or \"\"", Tcl_GetString(objv[2]))); - Tcl_SetErrorCode(interp, "TK", "ICU", "INDEX", NULL); + Tcl_SetErrorCode(interp, "TK", "ICU", "INDEX", (char *)NULL); return TCL_ERROR; } it = icu_open((UBreakIteratorTypex)(flags&3), locale, @@ -109,7 +109,7 @@ startEndOfCmd( if (it == NULL || errorCode != U_ZERO_ERRORZ) { Tcl_DStringFree(&ds); Tcl_SetObjResult(interp, Tcl_ObjPrintf("cannot open ICU iterator, errorcode: %d", (int)errorCode)); - Tcl_SetErrorCode(interp, "TK", "ICU", "CANNOTOPEN", NULL); + Tcl_SetErrorCode(interp, "TK", "ICU", "CANNOTOPEN", (char *)NULL); return TCL_ERROR; } if (idx > 0 && len != ulen) { |