From owner-svn-src-all@freebsd.org Sat Feb 20 04:50:20 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F367AAD82A; Sat, 20 Feb 2016 04:50:20 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46F981838; Sat, 20 Feb 2016 04:50:20 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-ob0-x233.google.com with SMTP id jq7so126174022obb.0; Fri, 19 Feb 2016 20:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ZXN75jfcEeXNzUZSWJ/vIMw8alSM41Gsk9fAHDQCFTc=; b=WH2R1m5QC7dd8Kvt6EO+rc9YZRhmiiH53W5/3jB3khAab4sL6qGUplAjorrvo/qOBx 5rZE8S40/NtBhSRTXRDEhRoKdGlHPt823LzA3yttxSJ8KS17TMF2MP065BKMS9luD/YQ KsReCUbopfmX/58uY6p2zYyvXCS0Z+IGIy7616FKoWf5usWamBPxWPhB8S7tZVhP6JUp p1A+BK34zR8eS/SxnSIJuuOwSDOjBP3zTLPKWm0nMmEpVE+VX5wv1ZEudu6yXl+vj40x 9+reIdXKwPtTwscmtUxXa5IkxtvCo8fIVQ0Bl9yv2tI30tStqs3x0avsvaGbToYRV/DV d6fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ZXN75jfcEeXNzUZSWJ/vIMw8alSM41Gsk9fAHDQCFTc=; b=k+yNaYLQmmLtNy8CSkRcprZ0558+kIfUGspjwBHl+YqYcdvZHjD+3xA6cFn/4gdQu1 d9hbfuou255i4DDa5FT9aVkq0QVqINENen/2MEcPN3dGNKAROCLdSniA8B3hG33EMZSu OTL8uMwVRyn79qY2MwugIRAcZ6ycHRHIRe6ZyvB9AscT0SX4VJ4hu6zmd92DFebXhDzn BTk/UDT+VPuSTtAUdU+LMWVZZEDUM8U5b66Lg1X58oo0DcUSL9HKhD+VbRJ3ZwetDqwb c7GAQN7QBDt0/v8HUwtLU7cVrPvZwKYv2/YuKsGrL5YPqDA/U7X4OTwRTmJzfG2BGoTu /NNw== X-Gm-Message-State: AG10YOSSIverOjBVYdFG0P3Jcr7GOm1j+nAdVGMbhK3VkvQhnyRrXXC/zdjGUdZ9E4Nbjtj8Wn8OMPB8ObzJWQ== MIME-Version: 1.0 X-Received: by 10.60.81.103 with SMTP id z7mr15069053oex.59.1455943819689; Fri, 19 Feb 2016 20:50:19 -0800 (PST) Sender: chmeeedalf@gmail.com Received: by 10.182.33.8 with HTTP; Fri, 19 Feb 2016 20:50:19 -0800 (PST) In-Reply-To: <20160220142119.U1712@besplex.bde.org> References: <201602200134.u1K1YDOD016555@repo.freebsd.org> <20160220142119.U1712@besplex.bde.org> Date: Fri, 19 Feb 2016 22:50:19 -0600 X-Google-Sender-Auth: c2XmjAVP190esqpJVuEsSZkHI5M Message-ID: Subject: Re: svn commit: r295833 - head/sys/sys From: Justin Hibbits To: Bruce Evans Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 04:50:20 -0000 On 2/19/16, Bruce Evans wrote: > On Sat, 20 Feb 2016, Justin Hibbits wrote: > >> Log: >> Fix the definition of RM_MAX_END. >> >> Even though casting from signed to unsigned is well-defined in C, it's >> better to >> first cast to the larger unsigned type, then negate. > > Casting ~0 is well-defined, but ~0 isn't. > > The operation is complementation, not negation. Yes, brain fart. I stand corrected of course. - Justin