summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index 69df49c..56df95d 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -172,7 +172,8 @@ TclPlatformInit(interp)
* name.version and the minor version number is in name.release.
*/
- if ((strchr(name.release, '.') != NULL) || !isdigit(name.version[0])) {
+ if ((strchr(name.release, '.') != NULL)
+ || !isdigit(UCHAR(name.version[0]))) {
Tcl_SetVar2(interp, "tcl_platform", "osVersion", name.release,
TCL_GLOBAL_ONLY);
} else {