diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-21 13:23:24 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-06-21 13:23:24 (GMT) |
commit | 779f43bf68b8ce10b9356a7ac83916707c4a780b (patch) | |
tree | a7101ed91dc87cbd995b59884dbce023bb66e386 /win/tkWinDialog.c | |
parent | f8f745fe34d10d25ff1fe4e0935e042b5347004c (diff) | |
download | tk-779f43bf68b8ce10b9356a7ac83916707c4a780b.zip tk-779f43bf68b8ce10b9356a7ac83916707c4a780b.tar.gz tk-779f43bf68b8ce10b9356a7ac83916707c4a780b.tar.bz2 |
Make better use of full range for string lengths, if Tk is compiled with Tcl 9.0 headers.
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r-- | win/tkWinDialog.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index dfcc744..a3b6e34 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -2107,13 +2107,12 @@ MakeFilter( *p = '\0'; } else { - size_t len; + TkSizeT len; if (valuePtr == NULL) { len = 0; } else { - (void) Tcl_GetString(valuePtr); - len = valuePtr->length; + (void) TkGetStringFromObj(valuePtr, &len); } /* |