Skip to content

Commit d70a5dc

Browse files
committed
[C++] Remove useless warning in the cast of memory ptr
1 parent b065acc commit d70a5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/details.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ namespace eigenpy
190190
typename MapNumpy<EquivalentEigenType>::EigenMap numpyMap = MapNumpy<EquivalentEigenType>::map(pyArray);
191191

192192
void* storage = ((bp::converter::rvalue_from_python_storage<MatType>*)
193-
(memory))->storage.bytes;
193+
((void*)memory))->storage.bytes;
194194
assert( (numpyMap.rows()<INT_MAX) && (numpyMap.cols()<INT_MAX)
195195
&& "Map range larger than int ... can never happen." );
196196
int r=(int)numpyMap.rows(),c=(int)numpyMap.cols();

0 commit comments

Comments
 (0)