Page MenuHomeDevCentral

D349.diff
No OneTemporary

D349.diff

diff --git a/Core.tcl b/Core.tcl
--- a/Core.tcl
+++ b/Core.tcl
@@ -226,8 +226,15 @@
}
"incr" {
+ if {$value == ""} {
+ set term 1
+ } elseif {[string is integer $value]} {
+ set term $value
+ } {
+ error "The increment term must be an integer."
+ }
+
set current [registry get $key]
- if {$value == ""} {set term 1}
if {$current == ""} {
registry set $key $term
} {

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 10:59 (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231679
Default Alt Text
D349.diff (411 B)

Event Timeline