summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authorkennykb <kennykb@noemail.net>2007-10-17 04:35:17 (GMT)
committerkennykb <kennykb@noemail.net>2007-10-17 04:35:17 (GMT)
commit0934b166218c97b3cf42392828ccaa624d6e5faa (patch)
treec7e520b513a7539bf23b751776a4e7b961d40a1c /generic/tclCompExpr.c
parent7fa46e01f42dd1f4d67a1b34a585a113bcd60e72 (diff)
downloadtcl-0934b166218c97b3cf42392828ccaa624d6e5faa.zip
tcl-0934b166218c97b3cf42392828ccaa624d6e5faa.tar.gz
tcl-0934b166218c97b3cf42392828ccaa624d6e5faa.tar.bz2
* generic/tclCompExpr.c: Moved a misplaced declaration that blocked
compilation on VC++. * generic/tclExecute.c: Silenced several VC++ compiler warnings about converting 'long' to 'unsigned short'. FossilOrigin-Name: 0852a34f132551ec1eb0d23258018dfbf85d4fd0
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index 36be6eb..a53a6f1 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompExpr.c,v 1.87 2007/10/15 21:27:48 dgp Exp $
+ * RCS: @(#) $Id: tclCompExpr.c,v 1.88 2007/10/17 04:35:18 kennykb Exp $
*/
#include "tclInt.h"
@@ -751,10 +751,11 @@ ParseExpr(
&& (lastStart[2] >= '0')
&& (lastStart[2] <= '9')) {
const char *end = lastStart + 2;
+ Tcl_Obj* copy;
while (isdigit(*end)) {
end++;
}
- Tcl_Obj *copy = Tcl_NewStringObj(lastStart,
+ copy = Tcl_NewStringObj(lastStart,
end - lastStart);
if (TclCheckBadOctal(NULL,
Tcl_GetString(copy))) {