Author: Oliver Roese
Date: 04:07:00 02/07/05
Go up one level in this thread
On February 05, 2005 at 21:40:42, Daniel Mehrmannn wrote:
>Hello,
Hello,
...
>#define SET_BIT_1 1
>#define SET_BIT_2 2
>
>void
>DoSomeThingWith_i(unsigend char *i)
>{
> *i = SET_BIT_1 | SET_BIT_2;
>
>}
I think the problem here is, that you downcast an integral type of wider width
to a type of shorter width, which could in principle lead to a loss of leading
bits.
Maybe the intel-compiler checks the constant given and verifies that there is
not a problem here, whereas the msvc-compiler does not and simply gives a
warning.
Oliver Roese
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.