From 8c79683c833a2c48aad6334207ffdc42e5049dc4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 24 Jul 2007 20:29:27 +0000 Subject: [PATCH] take a shot in the dark on the crash reported in #transmission --- libtransmission/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 825143989..7c6051b67 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -574,7 +574,7 @@ tr_bitfieldIsEmpty( const tr_bitfield_t * bitfield ) return 1; } -#define BIN(nth) (nth>>3) +#define BIN(nth) ((unsigned int)nth/8u) #define BIT(nth) (1<<(7-(nth%8))) int