summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-11-28 14:50:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-11-28 14:50:58 (GMT)
commitde316a45d4f6dcf7815d5c199f65a0e636f20423 (patch)
treef705a35db55d5a37f9783c7a0546ef235c30360f /unix/tclUnixChan.c
parent560ef2959a601d2e63d900821bc0946392be40c6 (diff)
downloadtcl-de316a45d4f6dcf7815d5c199f65a0e636f20423.zip
tcl-de316a45d4f6dcf7815d5c199f65a0e636f20423.tar.gz
tcl-de316a45d4f6dcf7815d5c199f65a0e636f20423.tar.bz2
Add missing cast that makes the fix effective.
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c4
1 files 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