From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3915E1382C5 for ; Sun, 25 Mar 2018 14:13:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1EF72E08F4; Sun, 25 Mar 2018 14:13:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E97DDE08F4 for ; Sun, 25 Mar 2018 14:13:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 730F5335C77 for ; Sun, 25 Mar 2018 14:13:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CB4125B for ; Sun, 25 Mar 2018 14:13:10 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1521987153.905449f8011e71f0cc018c9aa755cdbfb0307461.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/atom_explode.c X-VCS-Directories: libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 905449f8011e71f0cc018c9aa755cdbfb0307461 X-VCS-Branch: master Date: Sun, 25 Mar 2018 14:13:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d76c71a4-4835-40da-92df-0220ef94aafe X-Archives-Hash: 395371c3c7e9c6275f5a11f9baeadf87 commit: 905449f8011e71f0cc018c9aa755cdbfb0307461 Author: Fabian Groffen gentoo org> AuthorDate: Sun Mar 25 14:12:33 2018 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Sun Mar 25 14:12:33 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=905449f8 atom_explode: fix inversion of < and <= libq/atom_explode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libq/atom_explode.c b/libq/atom_explode.c index d5d0840..1b81909 100644 --- a/libq/atom_explode.c +++ b/libq/atom_explode.c @@ -135,9 +135,9 @@ atom_explode(const char *atom) ++atom; if (atom[0] == '=') { ++atom; - ret->pfx_op = ATOM_OP_NEWER_EQUAL; - } else ret->pfx_op = ATOM_OP_NEWER; + } else + ret->pfx_op = ATOM_OP_NEWER_EQUAL; break; default: ret->pfx_op = ATOM_OP_BLOCK;