[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint
 
- From: Roberto Ierusalimschy <roberto@...>
 
- Date: Fri, 29 Oct 2010 09:33:03 -0200
 
> [...]  However, some trivial operation after
> the shift avoids the warning:
> 
>   #define twoto(x)	(int)(1u<<(x))   /* note: unsigned->signed cast operation */
>   #define twoto(x)	(int)(unsigned int)(1<<(x)) /* similar */
>   #define twoto(x)	(0 | 1<<(x))
> 
> All of these eliminate the Lua 5.1.4 warnings.  They do seem like hacks though.
Because they are. ;)
-- Roberto
- References:
- various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, David Manura
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, Roberto Ierusalimschy
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, Ted Unangst
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, Roberto Ierusalimschy
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, Andre Leiradella
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, David Manura
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, Roberto Ierusalimschy
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, David Manura
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, Roberto Ierusalimschy
 
- Re: various warnings in 5.1.4 and 5.2.0-work4 with icc/msvc64/splint, David Manura