From fd825274c39b0480fc6fb360bf0e59d99a9c37f7 Mon Sep 17 00:00:00 2001 From: das Date: Thu, 26 Nov 2009 17:37:26 +0000 Subject: fix warning on LP64 --- generic/tclThreadAlloc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generic/tclThreadAlloc.c b/generic/tclThreadAlloc.c index a47b0d8..bd6491c 100755 --- a/generic/tclThreadAlloc.c +++ b/generic/tclThreadAlloc.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclThreadAlloc.c,v 1.30 2009/09/29 05:03:46 dgp Exp $ + * RCS: @(#) $Id: tclThreadAlloc.c,v 1.31 2009/11/26 17:37:26 das Exp $ */ #include "tclInt.h" @@ -297,6 +297,7 @@ TclpAlloc( register int bucket; size_t size; +#ifndef __LP64__ if (sizeof(int) >= sizeof(size_t)) { /* An unsigned int overflow can also be a size_t overflow */ const size_t zero = 0; @@ -307,6 +308,7 @@ TclpAlloc( return NULL; } } +#endif cachePtr = TclpGetAllocCache(); if (cachePtr == NULL) { @@ -440,6 +442,7 @@ TclpRealloc( return TclpAlloc(reqSize); } +#ifndef __LP64__ if (sizeof(int) >= sizeof(size_t)) { /* An unsigned int overflow can also be a size_t overflow */ const size_t zero = 0; @@ -450,6 +453,7 @@ TclpRealloc( return NULL; } } +#endif cachePtr = TclpGetAllocCache(); if (cachePtr == NULL) { -- cgit v0.12