From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: Richard Miller <9fans@hamnavoe.com> Date: Wed, 2 Jan 2013 09:26:10 +0000 In-Reply-To: <1306b366fc14378754e4d10a993cce67@rei2.9hal> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] arm compiler bug Topicbox-Message-UUID: fb515b40-ead7-11e9-9d60-3106f5b1d025 Good catch. 2's complement integers are generally useful but it's easy to forget that they don't quite obey normal algebraic rules. The assumption that (a < 0) => (-a > 0) is the cause of many easily-missed bugs.