[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: Ted Unangst <ted.unangst@...>
- Date: Mon, 25 Oct 2010 16:42:19 -0400
On Mon, Oct 25, 2010 at 1:49 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> 5.1.4
>> lgc.c(288) : warning C4334: '<<' : result of 32-bit shift implicitly
>> converted to 64 bits (was 64-bit shift intended?)
>> ltable.c(323) : warning C4334: '<<' : result of 32-bit shift
>> implicitly converted to 64 bits (was 64-bit shift intended?)
>> ltable.c(376) : warning C4334: '<<' : result of 32-bit shift
>> implicitly converted to 64 bits (was 64-bit shift intended?)
>
> Do you know what that means? This is (1 << (x)), where x is an unsigned
> byte. How shoud I write that to avoid this implicit conversion?
1L << x or maybe 1LL << x?