summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/makeHeader.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/makeHeader.tcl b/tools/makeHeader.tcl
index e9b7ed1..dd2f199 100644
--- a/tools/makeHeader.tcl
+++ b/tools/makeHeader.tcl
@@ -70,7 +70,7 @@ namespace eval makeHeader {
set from [lsearch -glob $data $BEGIN]
set to [lsearch -glob $data $END]
- if {$from == -1 || $to == -1 || $from >= $to} {
+ if {$from < 0 || $to < 0 || $from >= $to} {
throw BAD "not a template"
}