summaryrefslogtreecommitdiff
path: root/ext/-test-/memory_view
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-23 00:43:26 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-23 09:24:55 +0900
commit01ab29cc285ec92c07cd67db6f8616690bd217f8 (patch)
tree24db23d86f456cdf75c0b893593b60b6be894c29 /ext/-test-/memory_view
parentdb0385d6576bb9d2486e799c935e6b1fa1e7dfcc (diff)
[memory_view] Make some rb_memroy_view_t members const
Diffstat (limited to 'ext/-test-/memory_view')
-rw-r--r--ext/-test-/memory_view/memory_view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/memory_view/memory_view.c b/ext/-test-/memory_view/memory_view.c
index 79a64cfa5c..3156dd3101 100644
--- a/ext/-test-/memory_view/memory_view.c
+++ b/ext/-test-/memory_view/memory_view.c
@@ -314,8 +314,8 @@ mdview_get_memory_view(VALUE obj, rb_memory_view_t *view, int flags)
static bool
mdview_release_memory_view(VALUE obj, rb_memory_view_t *view)
{
- if (view->shape) xfree(view->shape);
- if (view->strides) xfree(view->strides);
+ if (view->shape) xfree((void *)view->shape);
+ if (view->strides) xfree((void *)view->strides);
return true;
}