Skip to content

Commit

Permalink
[py] fix error: cast from 'void*' to 'long unsigned int' loses precision
Browse files Browse the repository at this point in the history
  • Loading branch information
podsvirov committed Oct 28, 2021
1 parent cadad2f commit 21af94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/partio.i
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public:

%feature("autodoc");
%feature("docstring","Workaround to get the address to the ptr to help with interop python binding");
unsigned long ptr() const { return (unsigned long)(void*)self; }
unsigned long long ptr() const { return (unsigned long long)(void*)self; }
}

%extend ParticlesInfo {
Expand Down

0 comments on commit 21af94a

Please sign in to comment.