Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Jul 11, 2024
1 parent ab6e313 commit 0740cfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tk_plotly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,7 @@ std::string plotly_graphics_toolkit::getObjectNumber(
) const
{
double h = o.get_handle().value();
unsigned long id;
std::memcpy(&id, &h, sizeof(h));
unsigned long id = *reinterpret_cast<unsigned long*>(&h);
std::string type;

if (o.type() == "axes")
Expand Down

0 comments on commit 0740cfd

Please sign in to comment.