diff options
author | nijtmans <nijtmans> | 2010-12-01 09:58:51 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-12-01 09:58:51 (GMT) |
commit | b6d1219a7a9fcdb49db66a4217f34bd79ba40bba (patch) | |
tree | ff3e45f716f97fd6829df5f3c3f6ff70710f2771 /generic/tclBasic.c | |
parent | 79fc377e16fe1fb9074418c7fa5a4e06b9da28f4 (diff) | |
download | tcl-b6d1219a7a9fcdb49db66a4217f34bd79ba40bba.zip tcl-b6d1219a7a9fcdb49db66a4217f34bd79ba40bba.tar.gz tcl-b6d1219a7a9fcdb49db66a4217f34bd79ba40bba.tar.bz2 |
fix gcc 64-bit warnings: cast from pointer to integer of different size
fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r-- | generic/tclBasic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index f92930c..22daf78 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -16,7 +16,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.470 2010/11/29 22:16:17 ferrieux Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.471 2010/12/01 09:58:52 nijtmans Exp $ */ #include "tclInt.h" @@ -7702,7 +7702,7 @@ ExprRandFunc( * to insure different seeds in different threads (bug #416643) */ - iPtr->randSeed = TclpGetClicks() + ((long)Tcl_GetCurrentThread()<<12); + iPtr->randSeed = TclpGetClicks() + (PTR2INT(Tcl_GetCurrentThread())<<12); /* * Make sure 1 <= randSeed <= (2^31) - 2. See below. |