From baf3d8356bd1bf4d2aea98685aac57ce93384251 Mon Sep 17 00:00:00 2001 From: dkf Date: Thu, 31 May 2001 12:58:09 +0000 Subject: Added casts to stop warnings with SUNWspro cc on Solaris8. --- ChangeLog | 4 ++++ generic/tclExecute.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe95153..6b4c8e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-05-30 Donal K. Fellows + * generic/tclExecute.c (TclExecuteByteCode): Added two casts to + INST_STR_CMP implementation to get rid of a couple warnings from + the SUNWspro C compiler. + * generic/tclBasic.c (Tcl_GetMathFuncInfo,Tcl_ListMathFuncs): * generic/tclCmdIL.c (Tcl_InfoObjCmd,InfoFunctionsCmd): * generic/tcl.decls (generic table, positions 435+436): diff --git a/generic/tclExecute.c b/generic/tclExecute.c index f6ca674..3183ef2 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.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: tclExecute.c,v 1.24 2001/05/22 15:32:22 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.25 2001/05/31 12:58:09 dkf Exp $ */ #include "tclInt.h" @@ -2132,8 +2132,8 @@ TclExecuteByteCode(interp, codePtr) */ if ((valuePtr->typePtr == &tclByteArrayType) && (value2Ptr->typePtr == &tclByteArrayType)) { - s1 = Tcl_GetByteArrayFromObj(valuePtr, &s1len); - s2 = Tcl_GetByteArrayFromObj(value2Ptr, &s2len); + s1 = (char *) Tcl_GetByteArrayFromObj(valuePtr, &s1len); + s2 = (char *) Tcl_GetByteArrayFromObj(value2Ptr, &s2len); iResult = memcmp(s1, s2, (size_t) ((s1len < s2len) ? s1len : s2len)); } else { -- cgit v0.12