summaryrefslogtreecommitdiffstats
path: root/generic/tclLiteral.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2005-04-25 02:08:21 (GMT)
committerdgp <dgp@noemail.net>2005-04-25 02:08:21 (GMT)
commit411f769d68c61265e04ae19b551fc978f2813f94 (patch)
tree4a4655c55b20bcd85dda31acd27fc0a644112f56 /generic/tclLiteral.c
parentc2954d4ffc2150292dda50f5470c853338654525 (diff)
downloadtcl-411f769d68c61265e04ae19b551fc978f2813f94.zip
tcl-411f769d68c61265e04ae19b551fc978f2813f94.tar.gz
tcl-411f769d68c61265e04ae19b551fc978f2813f94.tar.bz2
silence compiler warnings
FossilOrigin-Name: 9cb000f783b88ab066f5976aeb031546f00d621f
Diffstat (limited to 'generic/tclLiteral.c')
-rw-r--r--generic/tclLiteral.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c
index c17a7e4..e55814e 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclLiteral.c,v 1.22 2005/04/21 22:42:04 dgp Exp $
+ * RCS: @(#) $Id: tclLiteral.c,v 1.23 2005/04/25 02:08:33 dgp Exp $
*/
#include "tclInt.h"
@@ -270,8 +270,6 @@ TclRegisterLiteral(envPtr, bytes, length, flags)
register Tcl_Obj *objPtr;
unsigned int hash;
int localHash, globalHash, objIndex;
- long n;
- char buf[TCL_INTEGER_SPACE];
Namespace *nsPtr;
if (length < 0) {
@@ -371,6 +369,8 @@ TclRegisterLiteral(envPtr, bytes, length, flags)
/*
* From here we use the objPtr, because it is NULL terminated
*/
+ long n;
+ char buf[TCL_INTEGER_SPACE];
if (TclGetLong((Tcl_Interp *) NULL, objPtr->bytes, &n) == TCL_OK) {
TclFormatInt(buf, n);
if (strcmp(objPtr->bytes, buf) == 0) {