diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-07-07 20:11:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-07-07 20:11:05 (GMT) |
commit | 20b21aaa691a3ef96c4e9972cead7b5eba58b23f (patch) | |
tree | 6c5b66babb4f2f12fd07efa9161bff898ec0fa90 | |
parent | d4a30d2344ed9e7ea007dff87e04e50495d9eda5 (diff) | |
download | tcl-20b21aaa691a3ef96c4e9972cead7b5eba58b23f.zip tcl-20b21aaa691a3ef96c4e9972cead7b5eba58b23f.tar.gz tcl-20b21aaa691a3ef96c4e9972cead7b5eba58b23f.tar.bz2 |
Fix build on MacOSX
-rw-r--r-- | generic/tclExecute.c | 2 | ||||
-rw-r--r-- | macosx/tclMacOSXBundle.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index f37c7ea..6650b53 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -8919,7 +8919,7 @@ GetSrcInfoForPc( * of the command containing the pc should * be stored. */ { - size_t pcOffset = (pc - codePtr->codeStart); + size_t pcOffset = (size_t)(pc - codePtr->codeStart); size_t numCmds = codePtr->numCommands; unsigned char *codeDeltaNext, *codeLengthNext; unsigned char *srcDeltaNext, *srcLengthNext; diff --git a/macosx/tclMacOSXBundle.c b/macosx/tclMacOSXBundle.c index dad3733..eeaf7b9 100644 --- a/macosx/tclMacOSXBundle.c +++ b/macosx/tclMacOSXBundle.c @@ -167,7 +167,7 @@ Tcl_MacOSXOpenBundleResources( Tcl_Interp *interp, const char *bundleName, int hasResourceFile, - int maxPathLen, + size_t maxPathLen, char *libraryPath) { return Tcl_MacOSXOpenVersionedBundleResources(interp, bundleName, NULL, @@ -201,7 +201,7 @@ Tcl_MacOSXOpenVersionedBundleResources( const char *bundleName, const char *bundleVersion, int hasResourceFile, - int maxPathLen, + size_t maxPathLen, char *libraryPath) { #ifdef HAVE_COREFOUNDATION |