summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-30 13:00:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-30 13:00:44 (GMT)
commitbcfc4a29c55da65006d3eb778c097ee6a24460e8 (patch)
tree3abe2f0fa72e3c3a775b3f172ef5eb8d9268df3a /tools
parentaa371355b1d31208dd1e1c3b5cae011d33a62290 (diff)
parent1d7fa6b53d9ccc07f2a0d7f71a0d79995b960ccc (diff)
downloadtcl-bcfc4a29c55da65006d3eb778c097ee6a24460e8.zip
tcl-bcfc4a29c55da65006d3eb778c097ee6a24460e8.tar.gz
tcl-bcfc4a29c55da65006d3eb778c097ee6a24460e8.tar.bz2
Merge 8.6
Diffstat (limited to 'tools')
-rw-r--r--tools/genStubs.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl
index 7c9ee03..a4a73ba 100644
--- a/tools/genStubs.tcl
+++ b/tools/genStubs.tcl
@@ -485,7 +485,9 @@ proc genStubs::makeDecl {name decl index} {
set line "$scspec $rtype"
}
set count [expr {2 - ([string length $line] / 8)}]
- append line [string range "\t\t\t" 0 $count]
+ if {$count >= 0} {
+ append line [string range "\t\t\t" 0 $count]
+ }
set pad [expr {24 - [string length $line]}]
if {$pad <= 0} {
append line " "