Verified Commit 62d3b683 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

types: use static_cast

parent 09e5a5db
......@@ -194,8 +194,9 @@ namespace eigenpy
inline static int fillwithscalar(void* buffer_, npy_intp length,
void* value, void* /*arr*/)
{
T r = *(T*)value;
T* buffer = (T*)buffer_;
// std::cout << "fillwithscalar" << std::endl;
T r = *static_cast<T*>(value);
T* buffer = static_cast<T*>(buffer_);
npy_intp i;
for (i = 0; i < length; i++) {
buffer[i] = r;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment