------- Comment #17 from pcarlini at suse dot de 2007-01-28 20:05 ------- (In reply to comment #16) > I think that we agreed that people using -Wconversion do want warnings for > larger->smaller conversions. When you mention same size types, do you mean > conversions between signed and unsigned types?
Curious how words can appear ambiguous... ;) In my understanding, the size has nothing to do by itself with signedness. And from the previous discussions seemed obvious (to me) that, as regards integer types, people want warnings only when the size of source and target are different (smaller for target). Floating points are not at issue, also rather obvious to me, should remain untouched in -Wconversion. Confirmed that so far I haven't found any larger signed -> small unsigned conversion, personally, I would probably explicitely cast anyway, in that case. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30464