I am running Tcl 8.4.9. I'm dealing with 64-bit address and need to perform some arithmetic operations on 64-bit address.
I used the expr
command but it returns a negative result. I do not want to upgrade Tcl version is there any other alternative for it??
set addr 0xffff00001000000
set offset 0x01
set newaddr [expr {$addr + $offset}]
if {$newaddr < 0} {
puts "Less than ZERO"
}
how to overcome such issues is there any other command to do arithmetic operations?