X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=tcl%2Fmmr_helpers.tcl;h=d9b6e63834678a6c7f791f3cbc67331a2806fcd1;hb=9cdbe61aab418bdf75bc443b16ce4cdf96732e3e;hp=6b2c1476ea3852195023d03066d82c08894c8d8e;hpb=f5657aa76e795e4ed5b13a9f5df943181a123e49;p=fw%2Fopenocd diff --git a/tcl/mmr_helpers.tcl b/tcl/mmr_helpers.tcl index 6b2c1476e..d9b6e6383 100644 --- a/tcl/mmr_helpers.tcl +++ b/tcl/mmr_helpers.tcl @@ -2,7 +2,7 @@ proc proc_exists { NAME } { set n [info commands $NAME] set l [string length $n] - return [expr $l != 0] + return [expr {$l != 0}] } # Give: REGISTER name - must be a global variable. @@ -52,7 +52,7 @@ proc show_mmr32_bits { NAMES VAL } { echo -n " " for { set y 7 } { $y >= 0 } { incr y -1 } { - echo -n [format " %d%*s | " [expr !!($VAL & (1 << ($x + $y)))] [expr {$w -1}] ""] + echo -n [format " %d%*s | " [expr {!!($VAL & (1 << ($x + $y)))}] [expr {$w -1}] ""] } echo "" }