From owner-freebsd-current@FreeBSD.ORG Sun Jul 13 12:49:18 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E648337B404 for ; Sun, 13 Jul 2003 12:49:18 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97AF443F3F for ; Sun, 13 Jul 2003 12:48:46 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h6DJmhcF002331; Sun, 13 Jul 2003 13:48:43 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 13 Jul 2003 13:48:38 -0600 (MDT) Message-Id: <20030713.134838.39218842.imp@bsdimp.com> To: leimy2k@mac.com From: "M. Warner Losh" In-Reply-To: <340CBBD2-B568-11D7-BE3B-0003937E39E0@mac.com> References: <1046B4F9-B561-11D7-BE3B-0003937E39E0@mac.com> <20030713190720.GA17305@falcon.midgard.homeip.net> <340CBBD2-B568-11D7-BE3B-0003937E39E0@mac.com> X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: GCC 3.3.1, new warnings with X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2003 19:49:19 -0000 In message: <340CBBD2-B568-11D7-BE3B-0003937E39E0@mac.com> David Leimbach writes: : So for the one way conversion of signed to unsigned it will behave like : 2's compliment : all the time. What about back to signed? Same way. It will be reduced by the maximum value of the range plus one to do the conversion. See section for 6.3.1.3 for the details. That's why I said 'as if' in my other mail. Warner