diff options
author | nijtmans <nijtmans> | 2011-01-14 16:03:13 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2011-01-14 16:03:13 (GMT) |
commit | b297ff0dce26cde3cc43c0f929a44976936b601e (patch) | |
tree | 030e3a61e8f002086132d677818d7a1f371fa98a /win/tclWinReg.c | |
parent | aaf249e2a83d00881890e2bba9bc1ede29309179 (diff) | |
download | tcl-b297ff0dce26cde3cc43c0f929a44976936b601e.zip tcl-b297ff0dce26cde3cc43c0f929a44976936b601e.tar.gz tcl-b297ff0dce26cde3cc43c0f929a44976936b601e.tar.bz2 |
Fix gcc-4.5.2 error: lvalue required as ...
(backported from 8.5/8.6)
Diffstat (limited to 'win/tclWinReg.c')
-rw-r--r-- | win/tclWinReg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win/tclWinReg.c b/win/tclWinReg.c index cdce1aa..c5a5c6f 100644 --- a/win/tclWinReg.c +++ b/win/tclWinReg.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinReg.c,v 1.21.2.7 2007/05/15 16:08:22 dgp Exp $ + * RCS: @(#) $Id: tclWinReg.c,v 1.21.2.8 2011/01/14 16:03:13 nijtmans Exp $ */ #include <tclPort.h> @@ -790,7 +790,9 @@ GetValue( Tcl_NewStringObj(Tcl_DStringValue(&buf), Tcl_DStringLength(&buf))); if (regWinProcs->useWide) { - while (*((Tcl_UniChar *)p)++ != 0) {} + Tcl_UniChar* up = (Tcl_UniChar*) p; + while (*up++ != 0) {} + p = (char*) up; } else { while (*p++ != '\0') {} } |