diff options
Diffstat (limited to 'gdb/testsuite/lib/completion-support.exp')
-rw-r--r-- | gdb/testsuite/lib/completion-support.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/completion-support.exp b/gdb/testsuite/lib/completion-support.exp index 15f59e6..8ddf53d 100644 --- a/gdb/testsuite/lib/completion-support.exp +++ b/gdb/testsuite/lib/completion-support.exp @@ -400,7 +400,7 @@ proc index_after {needle haystack} { if {$start == -1} { error "could not find \"$needle\" in \"$haystack\"" } - return [expr $start + [string length $needle]] + return [expr {$start + [string length $needle]}] } # Create a breakpoint using BREAK_COMMAND, and return the number |