diff options
author | das <das> | 2009-07-14 21:47:42 (GMT) |
---|---|---|
committer | das <das> | 2009-07-14 21:47:42 (GMT) |
commit | 0a901b4dd0d5f48c4258a435a7015b391a292f65 (patch) | |
tree | d8589c5fcfdc1eea2e11fc3a1450dac18691b60d /generic/tclCmdMZ.c | |
parent | 67e100ed95642d0ec30b5718d5c2eb66535c3cbe (diff) | |
download | tcl-0a901b4dd0d5f48c4258a435a7015b391a292f65.zip tcl-0a901b4dd0d5f48c4258a435a7015b391a292f65.tar.gz tcl-0a901b4dd0d5f48c4258a435a7015b391a292f65.tar.bz2 |
fix 64bit int <-> ptr cast warnings
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r-- | generic/tclCmdMZ.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 9d416bc..1fb32df 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.186 2009/07/14 16:52:28 kennykb Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.187 2009/07/14 21:47:42 das Exp $ */ #include "tclInt.h" @@ -3864,8 +3864,8 @@ TclNRSwitchObjCmd( * TIP #280: Make invoking context available to switch branch. */ - Tcl_NRAddCallback(interp, SwitchPostProc, (ClientData) splitObjs, - (ClientData) ctxPtr, (ClientData) pc, + Tcl_NRAddCallback(interp, SwitchPostProc, INT2PTR(splitObjs), + (ClientData) ctxPtr, INT2PTR(pc), (ClientData) pattern); return TclNREvalObjEx(interp, objv[j], 0, ctxPtr, j); } @@ -3877,9 +3877,9 @@ SwitchPostProc( { /* Unpack the preserved data */ - int splitObjs = (int) data[0]; + int splitObjs = PTR2INT(data[0]); CmdFrame* ctxPtr = (CmdFrame*) data[1]; - int pc = (int) data[2]; + int pc = PTR2INT(data[2]); const char* pattern = (const char*) data[3]; int patternLength = strlen(pattern); |