This is the mail archive of the gcc@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] |
Just to clarify, I understand how the result was obtained. The problem is, I don't think this is reasonable behaviour. In particular, the unwary user (me) writes something like: i % j where j happens to be size_t, an unsigned. The result is very unexpected to the poor user. Sure, it obeys the cited rule, but is this really the way you want your modulus operator to behave?
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |