From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 29 Jul 2011 08:36:23 -0400 To: 9fans@9fans.net Message-ID: <54cd0f451467619fe01ac994fff97ec8@ladd.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] acid "integer" Topicbox-Message-UUID: 07e79668-ead7-11e9-9d60-3106f5b1d025 i was looking for an a definition of acid(1)'s integer but i must have missed it. i had always assumed that they were intended to be unsigned. evidently there is some signed arithmetic going on, and this is calculations are subject to the local compiler's rounding rules. i suppose this is correct if acid integers are supposed to be signed. so the question is: are they? - erik ----- plan 9: acid: 0xffffffff * 0xffffffff 0xfffffffe00000001 p9p: acid; 0xffffffff * 0xffffffff 0xffffffff * 0xffffffff 0x00000001 just to make sure this isn't a printing issue acid; x = 0xffffffff * 0xffffffff acid; x==1 1