summaryrefslogtreecommitdiffstats
path: root/generic/tclLink.c
diff options
context:
space:
mode:
authorgriffin <briang42@easystreet.net>2017-05-28 16:06:29 (GMT)
committergriffin <briang42@easystreet.net>2017-05-28 16:06:29 (GMT)
commit919fc5759927c4b114ccc7771b7bcf6193fb5b42 (patch)
treeac04ded8d534ad8b6c50900797f21f495bafdc63 /generic/tclLink.c
parent5badb6535fd037244cae95a25e9790c7dae3c7c8 (diff)
downloadtcl-919fc5759927c4b114ccc7771b7bcf6193fb5b42.zip
tcl-919fc5759927c4b114ccc7771b7bcf6193fb5b42.tar.gz
tcl-919fc5759927c4b114ccc7771b7bcf6193fb5b42.tar.bz2
0d in LinkVar
Diffstat (limited to 'generic/tclLink.c')
-rw-r--r--generic/tclLink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclLink.c b/generic/tclLink.c
index a39dfcd..7366acc 100644
--- a/generic/tclLink.c
+++ b/generic/tclLink.c
@@ -692,7 +692,7 @@ SetInvalidRealFromAny(Tcl_Interp *interp, Tcl_Obj *objPtr) {
/*
* This function checks for integer representations, which are valid
* when linking with C variables, but which are invalid in other
- * contexts in Tcl. Handled are "+", "-", "", "0x", "0b" and "0o"
+ * contexts in Tcl. Handled are "+", "-", "", "0x", "0b", "0d" and "0o"
* (upperand lowercase). See bug [39f6304c2e].
*/
int
@@ -701,7 +701,7 @@ GetInvalidIntFromObj(Tcl_Obj *objPtr, int *intPtr)
const char *str = TclGetString(objPtr);
if ((objPtr->length == 0) ||
- ((objPtr->length == 2) && (str[0] == '0') && strchr("xXbBoO", str[1]))) {
+ ((objPtr->length == 2) && (str[0] == '0') && strchr("xXbBoOdD", str[1]))) {
*intPtr = 0;
return TCL_OK;
} else if ((objPtr->length == 1) && strchr("+-", str[0])) {