summaryrefslogtreecommitdiffstats
path: root/generic/tclTimer.c
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2005-11-09 21:46:19 (GMT)
committerkennykb <kennykb@noemail.net>2005-11-09 21:46:19 (GMT)
commitd178969337a53910c2a09b11b0a5eeb77c2f7dbc (patch)
tree5d7a37cdc9d25a858364d86f1af8143909a22efd /generic/tclTimer.c
parentfb07344373840acc1c2e8157661c33faf418541c (diff)
downloadtcl-d178969337a53910c2a09b11b0a5eeb77c2f7dbc.zip
tcl-d178969337a53910c2a09b11b0a5eeb77c2f7dbc.tar.gz
tcl-d178969337a53910c2a09b11b0a5eeb77c2f7dbc.tar.bz2
Bug 1350293
FossilOrigin-Name: 94cf472e1acb3e02f3395f3ccddf95e7340d2a1c
Diffstat (limited to 'generic/tclTimer.c')
-rw-r--r--generic/tclTimer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c
index 5832382..ef9bf24 100644
--- a/generic/tclTimer.c
+++ b/generic/tclTimer.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclTimer.c,v 1.6.2.3 2005/10/04 18:14:14 vasiljevic Exp $
+ * RCS: @(#) $Id: tclTimer.c,v 1.6.2.4 2005/11/09 21:46:20 kennykb Exp $
*/
#include "tclInt.h"
@@ -781,7 +781,8 @@ Tcl_AfterObjCmd(clientData, interp, objc, objv)
goto processInteger;
}
argString = Tcl_GetStringFromObj(objv[1], &length);
- if (isdigit(UCHAR(argString[0]))) { /* INTL: digit */
+ if (argString[0] == '+' || argString[0] == '-'
+ || isdigit(UCHAR(argString[0]))) { /* INTL: digit */
if (Tcl_GetIntFromObj(interp, objv[1], &ms) != TCL_OK) {
return TCL_ERROR;
}