diff options
Diffstat (limited to 'generic/tclGet.c')
| -rw-r--r-- | generic/tclGet.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/generic/tclGet.c b/generic/tclGet.c index 2ff203b..97e8c7b 100644 --- a/generic/tclGet.c +++ b/generic/tclGet.c @@ -10,8 +10,6 @@   *   * See the file "license.terms" for information on usage and redistribution of   * this file, and for a DISCLAIMER OF ALL WARRANTIES. - * - * RCS: @(#) $Id: tclGet.c,v 1.22 2008/07/08 17:52:15 dgp Exp $   */  #include "tclInt.h" @@ -55,6 +53,7 @@ Tcl_GetInt(      if (obj.refCount > 1) {  	Tcl_Panic("invalid sharing of Tcl_Obj on C stack");      } +    TclFreeIntRep(&obj);      return code;  } @@ -98,6 +97,7 @@ Tcl_GetDouble(      if (obj.refCount > 1) {  	Tcl_Panic("invalid sharing of Tcl_Obj on C stack");      } +    TclFreeIntRep(&obj);      return code;  } @@ -137,7 +137,7 @@ Tcl_GetBoolean(      obj.length = strlen(src);      obj.typePtr = NULL; -    code = Tcl_ConvertToType(interp, &obj, &tclBooleanType); +    code = TclSetBooleanFromAny(interp, &obj);      if (obj.refCount > 1) {  	Tcl_Panic("invalid sharing of Tcl_Obj on C stack");      } | 
