summaryrefslogtreecommitdiff
path: root/memory_view.c
diff options
context:
space:
mode:
authorKenta Murata <[email protected]>2021-09-06 16:01:52 +0900
committer<[email protected]>2021-09-06 16:01:52 +0900
commitf8bb2d9b2724b4a74322ac82d27c32a61153e8dd ()
treee6d8c441f0fd07e119a0a151bb81d218222df8ae /memory_view.c
parenta5e323f5edb85fa1bd94bb1e67b8ef8f6827056d (diff)
memory_view.c: Rename private to private_data for C++ (#4812)
* memory_view.c: Rename private to private_data for C++ * doc/memory_view.md: Update document * Fix doc/memory_view.md Co-authored-by: Sutou Kouhei <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]>
Notes: Merged-By: mrkn <[email protected]>
-rw-r--r--memory_view.c2
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ rb_memory_view_init_as_byte_array(rb_memory_view_t *view, VALUE obj, void *data,
view->shape = NULL;
view->strides = NULL;
view->sub_offsets = NULL;
- *((void **)&view->private) = NULL;
return true;
}