From patchwork Tue Apr 13 00:27:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 11893 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 6F869BD1F6 for ; Tue, 13 Apr 2021 00:28:27 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id DF386687EC; Tue, 13 Apr 2021 02:28:26 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="jpOMCDjh"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8D86F605AE for ; Tue, 13 Apr 2021 02:28:24 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 91DB56F2 for ; Tue, 13 Apr 2021 02:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1618273703; bh=N6iHNWHixweSSdKtj7xc7P0p3AU49u4G1ptkWRdOefw=; h=From:To:Subject:Date:From; b=jpOMCDjh79kS/h5Q6/1sDRe5+HaTjHS6MqV8UhtJo45bhPYsU1nxTE3y3SmwhkUCT fBcxJNA38qStSOhEuqjrkdYJV9RheHqURsnZRSeKIbV5KNGxV47pThkMJZqPZK410R 43BDrtyxhwIiznF8X3k4PrVV1ajXIb37YZo/ASBk= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 13 Apr 2021 03:27:29 +0300 Message-Id: <20210413002731.25653-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: Fix Span reverse iterators X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This small series fixes a bug in the Span reverse iterators. It starts with an update of the unit test to expose the bug, and then fixes it. Laurent Pinchart (2): test: span: Add tests for begin() and rend() libcamera: span: Fix reverse iterators include/libcamera/span.h | 8 ++++---- test/span.cpp | 40 ++++++++++++++++++++++++++++++++-------- 2 files changed, 36 insertions(+), 12 deletions(-)