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_framebuffer.c | |
parent | 405c3b59e4b0dd9e2c3a3420b66507aa945b986d (diff) |
Cleanup: compiler warnings
Diffstat (limited to 'source/blender/python/gpu/gpu_py_framebuffer.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_framebuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/gpu/gpu_py_framebuffer.c b/source/blender/python/gpu/gpu_py_framebuffer.c index adb3c485537..7f64cb90a97 100644 --- a/source/blender/python/gpu/gpu_py_framebuffer.c +++ b/source/blender/python/gpu/gpu_py_framebuffer.c @@ -644,7 +644,7 @@ PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_refer void **ref = GPU_framebuffer_py_reference_get(fb); if (ref) { /* Retrieve BPyGPUFrameBuffer reference. */ - self = POINTER_OFFSET(ref, -offsetof(BPyGPUFrameBuffer, fb)); + self = (BPyGPUFrameBuffer *)POINTER_OFFSET(ref, -offsetof(BPyGPUFrameBuffer, fb)); BLI_assert(self->fb == fb); Py_INCREF(self); return (PyObject *)self; @@ -661,7 +661,7 @@ PyObject *BPyGPUFrameBuffer_CreatePyObject(GPUFrameBuffer *fb, bool shared_refer self->shared_reference = shared_reference; BLI_assert(GPU_framebuffer_py_reference_get(fb) == NULL); - GPU_framebuffer_py_reference_set(fb, &self->fb); + GPU_framebuffer_py_reference_set(fb, (void **)&self->fb); #endif return (PyObject *)self; |