Skip to content

Commit

Permalink
Avoid errors for non-numeric args to [after]
Browse files Browse the repository at this point in the history
(cleanup from recent int changes)
  • Loading branch information
coke committed Oct 25, 2009
1 parent 28117f5 commit 130f71f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions runtime/builtin/after.pir
Expand Up @@ -9,11 +9,14 @@
die 'wrong # args: should be "after option ?arg arg ...?"'
})

.int(msec, argv[0])
.int(sec , msec / 1000)

sleep sec

.TryCatch({
.int(msec, argv[0])
.int(sec , msec / 1000)
sleep sec
}, {
# don't handle any of the other options yet.
})

.return('')
.end

Expand Down

0 comments on commit 130f71f

Please sign in to comment.