R
.rhavin grobert
typedef unsigned int UINT;
foo(-1);
void foo(int iOffset)
{
if ((UINT)iOffset < 3)
return;
// why do i get here?
}
on my vc6 i can read in debugger that iOffset is (as expected)
0xffffffff. shouldnt ((UINT)iOffset < 3) convert to (1<3) and
therefore the 'return' be called?
foo(-1);
void foo(int iOffset)
{
if ((UINT)iOffset < 3)
return;
// why do i get here?
}
on my vc6 i can read in debugger that iOffset is (as expected)
0xffffffff. shouldnt ((UINT)iOffset < 3) convert to (1<3) and
therefore the 'return' be called?