From owner-svn-src-head@FreeBSD.ORG Tue May 3 21:53:57 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BB7A1065672; Tue, 3 May 2011 21:53:57 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) by mx1.freebsd.org (Postfix) with ESMTP id 0949D8FC0C; Tue, 3 May 2011 21:53:57 +0000 (UTC) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mx1.stack.nl (Postfix) with ESMTP id 03A811DD82C; Tue, 3 May 2011 23:53:55 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 1677) id F16BD1736B; Tue, 3 May 2011 23:53:54 +0200 (CEST) Date: Tue, 3 May 2011 23:53:54 +0200 From: Jilles Tjoelker To: Craig Rodrigues Message-ID: <20110503215354.GA93376@stack.nl> References: <201105030743.p437hl8M075368@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105030743.p437hl8M075368@svn.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r221365 - head/lib/libstand X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 21:53:57 -0000 On Tue, May 03, 2011 at 07:43:47AM +0000, Craig Rodrigues wrote: > Author: rodrigc > Date: Tue May 3 07:43:47 2011 > New Revision: 221365 > URL: http://svn.freebsd.org/changeset/base/221365 > Log: > - Add parentheses around expression to eliminate compiler warning. > Modified: > head/lib/libstand/dosfs.c > - d->d_fileno = dd.de.clus[1] << 8 + dd.de.clus[0]; > + d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0]; This certainly seems an improvement, however not because it avoids a compiler warning but because the original code was wrong. For some strange reason, + binds more strongly than <<, so fewer different d_fileno values were generated than likely intended. -- Jilles Tjoelker