January 02, 2006 unexpected warning | ||||
---|---|---|---|---|
| ||||
with dmd 0.141 and "-w" int main() { // no warning bit a1 = (( 1 & 3 ) != 0 ); // warning: implicit conversion of // expression (i & 3 != 0) of type int // to bit can cause loss of data int i = 1; bit a2 = (( i & 3 ) != 0 ); return 0; } Frank |
January 02, 2006 Re: unexpected warning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Sorry I noticed the "bool bugs" thread too late. Frank |
Copyright © 1999-2021 by the D Language Foundation