diff options
author | nijtmans <nijtmans> | 2010-08-30 13:49:27 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-08-30 13:49:27 (GMT) |
commit | a37106179e4c1484469107de089057cd2748090c (patch) | |
tree | ed25a8b0bdfa5acdf1aa2509cc57b783aaf9d1a2 /generic/tclTomMathStubLib.c | |
parent | af6af80ab88abd5db88a9b378434fa041f19a74a (diff) | |
download | tcl-a37106179e4c1484469107de089057cd2748090c.zip tcl-a37106179e4c1484469107de089057cd2748090c.tar.gz tcl-a37106179e4c1484469107de089057cd2748090c.tar.bz2 |
[Patch 2997642] many type casts needed when using Tcl_Pkg* API. Partly.
Diffstat (limited to 'generic/tclTomMathStubLib.c')
-rw-r--r-- | generic/tclTomMathStubLib.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/generic/tclTomMathStubLib.c b/generic/tclTomMathStubLib.c index 4139261..9c9cbc5 100644 --- a/generic/tclTomMathStubLib.c +++ b/generic/tclTomMathStubLib.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: tclTomMathStubLib.c,v 1.1 2010/03/04 22:29:05 nijtmans Exp $ + * RCS: @(#) $Id: tclTomMathStubLib.c,v 1.2 2010/08/30 13:49:28 nijtmans Exp $ */ /* @@ -57,15 +57,14 @@ TclTomMathInitializeStubs( int exact = 0; const char *packageName = "tcl::tommath"; const char *errMsg = NULL; - ClientData pkgClientData = NULL; + const TclTomMathStubs *stubsPtr; const char *actualVersion = - Tcl_PkgRequireEx(interp, packageName, version, exact, &pkgClientData); - const TclTomMathStubs *stubsPtr = pkgClientData; + Tcl_PkgRequireEx(interp, packageName, version, exact, &stubsPtr); if (actualVersion == NULL) { return NULL; } - if (pkgClientData == NULL) { + if (stubsPtr == NULL) { errMsg = "missing stub table pointer"; } else if ((stubsPtr->tclBN_epoch)() != epoch) { errMsg = "epoch number mismatch"; |