diff options
author | dgp <dgp@users.sourceforge.net> | 2017-06-26 20:14:14 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-06-26 20:14:14 (GMT) |
commit | 2ebce7dad7450b8e2aea2fee20a5e7d79e14389b (patch) | |
tree | 4f470087b84a3d440f21ac47f3f1f9df96a57cd9 /generic/tclLink.c | |
parent | a8960a08767b386796ff04d9412f0868ff617295 (diff) | |
parent | 45cf14ed033166ae5e6bdd6e2e7fcc949a0d70da (diff) | |
download | tcl-2ebce7dad7450b8e2aea2fee20a5e7d79e14389b.zip tcl-2ebce7dad7450b8e2aea2fee20a5e7d79e14389b.tar.gz tcl-2ebce7dad7450b8e2aea2fee20a5e7d79e14389b.tar.bz2 |
merge trunk
Diffstat (limited to 'generic/tclLink.c')
-rw-r--r-- | generic/tclLink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclLink.c b/generic/tclLink.c index 02abfa0..9c698a0 100644 --- a/generic/tclLink.c +++ b/generic/tclLink.c @@ -693,7 +693,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 @@ -702,7 +702,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])) { |