Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Aug 1, 2023
1 parent 7690517 commit cc7b90f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ylt/struct_pack/struct_pack_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ constexpr bool check_if_compatible_element_exist_impl_helper() {
return check_if_compatible_element_exist_impl_helper<
version, typename Arg::value_type, ParentArgs...>();
}
else if constexpr (check_circle<Arg, ParentArgs...>()) {
else if constexpr (check_circle<Arg, ParentArgs...>() != 0) {
return false;
}
else if constexpr (id == type_id::compatible_t) {
Expand Down
2 changes: 1 addition & 1 deletion src/struct_pack/tests/test_pragma_pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ TEST_CASE("testing no #pragam pack") {
static_assert(sizeof(T) == 4);
static_assert(offsetof(T, a) == 0);
static_assert(offsetof(T, b) == 2);
T t{ 'a', 666};
T t{'a', 666};
auto literal = struct_pack::get_type_literal<test_pragma_pack::dummy>();
string_literal<char, 6> val{
{(char)-3, 12, 7, (char)131, (char)131, (char)-1}};
Expand Down

0 comments on commit cc7b90f

Please sign in to comment.