hey,

i have an enum in which a value is set as 1L << 31. suncc reports:

warning: integer overflow detected: op "<<"

I don't understand as, afaik, an enum is considered as an int and 1 << 31
fits in an int. Can someone explain we what is wrong ?

thank you

Vincent Torri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20091219/bb9b0800/attachment.html>

Reply via email to