This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Stupid off-topic question
- To: gcc at gcc dot gnu dot org
- Subject: Stupid off-topic question
- From: nbecker at fred dot net
- Date: 02 Aug 2000 15:00:14 -0400
I can't understand this logic.
-1 % 4083 -> -1
But
-1 % (unsigned)4083 -> 2433.
I would expect by any reasonable mathematical definition, that
-1 % 4083 -> 4082.
This was gcc-2.95.2 i686-pc-linux-gnu.
If the generated code is really that stupid, maybe gcc should give a
warning?