diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-30 17:49:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-30 17:49:55 +0300 |
commit | 75536b5a61fc7389b31a4244f139c5db00070c48 (patch) | |
tree | 3a49cad8f942b4a44d305dcb4e75075c2e94640b /source/blender/python/gpu/gpu_py_texture.c | |
parent | 405c3b59e4b0dd9e2c3a3420b66507aa945b986d (diff) |
Cleanup: compiler warnings
Diffstat (limited to 'source/blender/python/gpu/gpu_py_texture.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_texture.c b/source/blender/python/gpu/gpu_py_texture.c index 7e0a642dbbc..4df61d35d4c 100644 --- a/source/blender/python/gpu/gpu_py_texture.c +++ b/source/blender/python/gpu/gpu_py_texture.c @@ -604,7 +604,7 @@ PyObject *BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference) void **ref = GPU_texture_py_reference_get(tex); if (ref) { /* Retrieve BPyGPUTexture reference. */ - self = POINTER_OFFSET(ref, -offsetof(BPyGPUTexture, tex)); + self = (BPyGPUTexture *)POINTER_OFFSET(ref, -offsetof(BPyGPUTexture, tex)); BLI_assert(self->tex == tex); Py_INCREF(self); return (PyObject *)self; @@ -619,7 +619,7 @@ PyObject *BPyGPUTexture_CreatePyObject(GPUTexture *tex, bool shared_reference) #ifndef GPU_NO_USE_PY_REFERENCES BLI_assert(GPU_texture_py_reference_get(tex) == NULL); - GPU_texture_py_reference_set(tex, &self->tex); + GPU_texture_py_reference_set(tex, (void **)&self->tex); #endif return (PyObject *)self; |