From mboxrd@z Thu Jan 1 00:00:00 1970 From: lucio@proxima.alt.za (Lucio De Re) Date: Tue, 8 Mar 2011 19:43:02 +0200 Subject: [9fans] 8c puzzling behavior In-Reply-To: <828637c0a3c0883a51747d7b9d310a81@ladd.quanstro.net> Message-ID: Topicbox-Message-UUID: b929c276-ead6-11e9-9d60-3106f5b1d025 >> so it seems clear that constants are treated as if unsigned, regardless, >> but variables are not? > > the really wierd bit is that the 1 in 1< even though other constants are treated as if unsigned, and i is > unsigned. > I would not hesitate to call that a bug. I would also strongly advise you to leave well enough alone and not rely on what the standard calls implementation choices for any code you would like to be portable. If it doesn't have to be portable, check the compiler behaviour; then, as R.A. Heinlein would have it, "revel in it". ++L