warning: comparison between signed and unsigned integer expressions

Nov 17, 2009 12:43

Dear Lazyweb,

Philosophically, why is it a warning to test equality between signed and unsigned integer expressions in C++? Is it a performance issue (i.e., u==i would become bitwise_equal(u, i) && i >= 0)? Is it just that it thinks mixing signedness is a bad idea?

lazyweb, c++

Previous post Next post
Up