Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
62d3b683
Verified
Commit
62d3b683
authored
Jul 30, 2021
by
Justin Carpentier
Browse files
types: use static_cast
parent
09e5a5db
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/eigenpy/user-type.hpp
View file @
62d3b683
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment