diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-06 15:29:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-06 15:29:54 (GMT) |
commit | 7293da8bb72712757786b863b3e5ecd826917916 (patch) | |
tree | 0acc593d65c0ed250414e43684b95b74b1d4b44a /unix/tkUnixKey.c | |
parent | 7f94543bc8a39f0f426203faef8b5b5a9fa4fb56 (diff) | |
download | tk-7293da8bb72712757786b863b3e5ecd826917916.zip tk-7293da8bb72712757786b863b3e5ecd826917916.tar.gz tk-7293da8bb72712757786b863b3e5ecd826917916.tar.bz2 |
More -Wconversion C warning fixes
Diffstat (limited to 'unix/tkUnixKey.c')
-rw-r--r-- | unix/tkUnixKey.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c index f54a445..c595fbb 100644 --- a/unix/tkUnixKey.c +++ b/unix/tkUnixKey.c @@ -133,8 +133,8 @@ TkpGetString( #if X_HAVE_UTF8_STRING Tcl_DStringSetLength(dsPtr, TCL_DSTRING_STATIC_SIZE-1); - len = Xutf8LookupString(winPtr->inputContext, &eventPtr->xkey, - Tcl_DStringValue(dsPtr), Tcl_DStringLength(dsPtr), + len = (Tcl_Size)Xutf8LookupString(winPtr->inputContext, &eventPtr->xkey, + Tcl_DStringValue(dsPtr), (int)Tcl_DStringLength(dsPtr), &kePtr->keysym, &status); if (status == XBufferOverflow) { @@ -143,8 +143,8 @@ TkpGetString( */ Tcl_DStringSetLength(dsPtr, len); - len = Xutf8LookupString(winPtr->inputContext, &eventPtr->xkey, - Tcl_DStringValue(dsPtr), Tcl_DStringLength(dsPtr), + len =(Tcl_Size) Xutf8LookupString(winPtr->inputContext, &eventPtr->xkey, + Tcl_DStringValue(dsPtr), (int)Tcl_DStringLength(dsPtr), &kePtr->keysym, &status); } if ((status != XLookupChars) && (status != XLookupBoth)) { @@ -191,7 +191,7 @@ TkpGetString( Tcl_DStringInit(&buf); Tcl_DStringSetLength(&buf, TCL_DSTRING_STATIC_SIZE-1); - len = XLookupString(&eventPtr->xkey, Tcl_DStringValue(&buf), + len = (Tcl_Size)XLookupString(&eventPtr->xkey, Tcl_DStringValue(&buf), TCL_DSTRING_STATIC_SIZE, &kePtr->keysym, 0); Tcl_DStringValue(&buf)[len] = '\0'; @@ -421,7 +421,8 @@ TkpInitKeymapInfo( XModifierKeymap *modMapPtr; KeyCode *codePtr; KeySym keysym; - int count, i, j, max, arraySize; + int count, i, max; + Tcl_Size j, arraySize; #define KEYCODE_ARRAY_SIZE 20 dispPtr->bindInfoStale = 0; |