summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 07:28:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 07:28:14 (GMT)
commitf796d623675cfb8a59b1c190470f785c61b90a8e (patch)
treef50e689312394cf955d4247d6236507827fc2fcd /library/safe.tcl
parentf5ac592def2fc9aed2314cfa3015e377247d599c (diff)
downloadtcl-f796d623675cfb8a59b1c190470f785c61b90a8e.zip
tcl-f796d623675cfb8a59b1c190470f785c61b90a8e.tar.gz
tcl-f796d623675cfb8a59b1c190470f785c61b90a8e.tar.bz2
Use $index<0 in stead of $index==-1 consistantly
Diffstat (limited to 'library/safe.tcl')
-rw-r--r--library/safe.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/safe.tcl b/library/safe.tcl
index c6e653f..6090a46 100644
--- a/library/safe.tcl
+++ b/library/safe.tcl
@@ -318,7 +318,7 @@ proc ::safe::InterpSetConfig {child access_path staticsok nestedok deletehook} {
# Make sure that tcl_library is in auto_path and at the first
# position (needed by setAccessPath)
set where [lsearch -exact $access_path [info library]]
- if {$where == -1} {
+ if {$where < 0} {
# not found, add it.
set access_path [linsert $access_path 0 [info library]]
Log $child "tcl_library was not in auto_path,\