From de316a45d4f6dcf7815d5c199f65a0e636f20423 Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 28 Nov 2006 14:50:58 +0000 Subject: Add missing cast that makes the fix effective. --- unix/tclUnixChan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 2390303..4c952a1 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.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: tclUnixChan.c,v 1.74 2006/11/27 20:16:03 kennykb Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.75 2006/11/28 14:50:58 dgp Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -3188,7 +3188,7 @@ TclUnixWaitForFile( } memset((void *) readyMasks, 0, 3*MASK_SIZE*sizeof(fd_mask)); index = fd/(NBBY*sizeof(fd_mask)); - bit = 1 << (fd%(NBBY*sizeof(fd_mask))); + bit = ((fd_mask)1) << (fd%(NBBY*sizeof(fd_mask))); /* * Loop in a mini-event loop of our own, waiting for either the file to -- cgit v0.12