Skip to content

Commit

Permalink
release v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Jul 22, 2022
1 parent a05cb6e commit 1303f3d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Changelog

### [1.0.5] - 2022-
### [1.0.5] - 2022-07-23
#### Fixed
- fix opcode conversion for empty source sequence

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions extras/rapidfuzz_amalgamated.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
// 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.
Expand Down Expand Up @@ -454,7 +454,8 @@ class Editops : private std::vector<EditOp> {
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<size_t>(static_cast<ptrdiff_t>(result[result_pos].src_pos) + offset);
result_pos++;
}
/* element of subsequence not part of the sequence */
Expand All @@ -470,7 +471,8 @@ class Editops : private std::vector<EditOp> {
/* 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<size_t>(static_cast<ptrdiff_t>(result[result_pos].src_pos) + offset);
result_pos++;
}

Expand Down
6 changes: 4 additions & 2 deletions rapidfuzz/details/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ class Editops : private std::vector<EditOp> {
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<size_t>(static_cast<ptrdiff_t>(result[result_pos].src_pos) + offset);
result_pos++;
}
/* element of subsequence not part of the sequence */
Expand All @@ -325,7 +326,8 @@ class Editops : private std::vector<EditOp> {
/* 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<size_t>(static_cast<ptrdiff_t>(result[result_pos].src_pos) + offset);
result_pos++;
}

Expand Down

0 comments on commit 1303f3d

Please sign in to comment.