Skip to content

Commit

Permalink
clipper.export.h - tweaked new Reinterpret function
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Aug 15, 2024
1 parent 6df527f commit 1e9cb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CPP/Clipper2Lib/include/clipper2/clipper.export.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ inline Rect<T> CRectToRect(const CRect<T>& rect)
template <typename T1, typename T2>
inline T1 Reinterpret(T2 value) {
T1 result;
std::memcpy(&result, &value, sizeof(value));
memcpy(&result, &value, sizeof(value));
return result;
}

Expand Down

0 comments on commit 1e9cb43

Please sign in to comment.