Skip to content

Commit

Permalink
Fixed bug in memory copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdolan1973 committed Mar 13, 2024
1 parent 3398a3d commit 0fb27ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/AlignerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ TEST_CASE_METHOD(AlignerNodeTestFixture, "AlignerTest: Check alignment with bed
auto bh_tag_type = *(char*)bh_tag_ptr;
CHECK(bh_tag_type == 'i');
int32_t bh_tag_value = 0;
std::copy(bh_tag_ptr + 1, bh_tag_ptr + 5, &bh_tag_value);
memcpy(&bh_tag_value, bh_tag_ptr + 1, 4);
CHECK(bh_tag_value == 3);
}

Expand Down

0 comments on commit 0fb27ef

Please sign in to comment.