This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

integer conversion warnings?


Hi,

is gcc/g++ able to warn me in these cases:

short int a;
long int b;
a = b;

that the conversion may lose significant digits?  Borland's
compiler does it and I would really appreciate that. :-)

I didn't find the answer in FAQs nor in list archives nor
with Google -- is it *so* obvious? :-O

Thanks,

-- 
Egon Eckert, Heaven Industries, s.r.o.
E-mail: egon@heaven.industries.cz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]