From 21af94a26335be06f1f0e5f80823d0801ceec045 Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Thu, 28 Oct 2021 10:44:56 +0300 Subject: [PATCH] [py] fix error: cast from 'void*' to 'long unsigned int' loses precision --- src/py/partio.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/partio.i b/src/py/partio.i index 5dccab1..6da88db 100644 --- a/src/py/partio.i +++ b/src/py/partio.i @@ -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 {