Fixing bugs exposed by scan-build
[tpg/acess2.git] / Modules / IPStack / tcp.c
index bb71fdb..e2cc4a8 100644 (file)
@@ -764,7 +764,7 @@ Uint16 TCP_GetUnusedPort()
 
        // Get Next outbound port
        ret = giTCP_NextOutPort++;
-       while( gaTCP_PortBitmap[ret/32] & (1 << (ret%32)) )
+       while( gaTCP_PortBitmap[ret/32] & (1UL << (ret%32)) )
        {
                ret ++;
                giTCP_NextOutPort++;

UCC git Repository :: git.ucc.asn.au