From 1303f3de46ca3d8de7e8e327f1f48e0859573318 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Sat, 23 Jul 2022 00:07:44 +0200 Subject: [PATCH] release v1.0.5 --- CHANGELOG.md | 2 +- CMakeLists.txt | 2 +- extras/rapidfuzz_amalgamated.hpp | 8 +++++--- rapidfuzz/details/types.hpp | 6 ++++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c88b796d..4981a405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Changelog -### [1.0.5] - 2022- +### [1.0.5] - 2022-07-23 #### Fixed - fix opcode conversion for empty source sequence diff --git a/CMakeLists.txt b/CMakeLists.txt index 4130ccc1..23a37d6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) message(FATAL_ERROR "Building in-source is not supported! Create a build dir and remove ${CMAKE_SOURCE_DIR}/CMakeCache.txt") endif() -project(rapidfuzz LANGUAGES CXX VERSION 1.0.4) +project(rapidfuzz LANGUAGES CXX VERSION 1.0.5) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") include(GNUInstallDirs) diff --git a/extras/rapidfuzz_amalgamated.hpp b/extras/rapidfuzz_amalgamated.hpp index 6e92d6dd..01ba04a2 100644 --- a/extras/rapidfuzz_amalgamated.hpp +++ b/extras/rapidfuzz_amalgamated.hpp @@ -1,7 +1,7 @@ // Licensed under the MIT License . // SPDX-License-Identifier: MIT // RapidFuzz v1.0.2 -// Generated: 2022-07-22 23:36:42.783380 +// Generated: 2022-07-23 00:29:32.270116 // ---------------------------------------------------------- // This file is an amalgamation of multiple different files. // You probably shouldn't edit it directly. @@ -454,7 +454,8 @@ class Editops : private std::vector { for (const auto& sop : subsequence) { for (; op_iter != op_end && sop != *op_iter; op_iter++) { result[result_pos] = *op_iter; - result[result_pos].src_pos += offset; + result[result_pos].src_pos = + static_cast(static_cast(result[result_pos].src_pos) + offset); result_pos++; } /* element of subsequence not part of the sequence */ @@ -470,7 +471,8 @@ class Editops : private std::vector { /* add remaining elements */ for (; op_iter != op_end; op_iter++) { result[result_pos] = *op_iter; - result[result_pos].src_pos += offset; + result[result_pos].src_pos = + static_cast(static_cast(result[result_pos].src_pos) + offset); result_pos++; } diff --git a/rapidfuzz/details/types.hpp b/rapidfuzz/details/types.hpp index 4db46283..d2b31d26 100644 --- a/rapidfuzz/details/types.hpp +++ b/rapidfuzz/details/types.hpp @@ -309,7 +309,8 @@ class Editops : private std::vector { for (const auto& sop : subsequence) { for (; op_iter != op_end && sop != *op_iter; op_iter++) { result[result_pos] = *op_iter; - result[result_pos].src_pos += offset; + result[result_pos].src_pos = + static_cast(static_cast(result[result_pos].src_pos) + offset); result_pos++; } /* element of subsequence not part of the sequence */ @@ -325,7 +326,8 @@ class Editops : private std::vector { /* add remaining elements */ for (; op_iter != op_end; op_iter++) { result[result_pos] = *op_iter; - result[result_pos].src_pos += offset; + result[result_pos].src_pos = + static_cast(static_cast(result[result_pos].src_pos) + offset); result_pos++; }