Skip to content

Commit

Permalink
Manually fixing up another clang-tidy mishap missed before.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve committed Feb 7, 2022
1 parent 9d863ee commit ffa3eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pybind11/detail/type_caster_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,13 +663,13 @@ class type_caster_generic {
if (type->operator_new) {
vptr = type->operator_new(type->type_size);
} else {
#if defined(__cpp_aligned_new) && (!defined(_MSC_VER) || _MSC_VER >= 1912)
#if defined(__cpp_aligned_new) && (!defined(_MSC_VER) || _MSC_VER >= 1912)
if (type->type_align > __STDCPP_DEFAULT_NEW_ALIGNMENT__) {
vptr = ::operator new(type->type_size, std::align_val_t(type->type_align));
} else {
#endif
vptr = ::operator new(type->type_size);
}
#endif
}
}
value = vptr;
Expand Down

0 comments on commit ffa3eed

Please sign in to comment.