Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
5289af5f
Commit
5289af5f
authored
Aug 05, 2016
by
Wenzel Jakob
Committed by
GitHub
Aug 05, 2016
Browse files
Merge pull request #319 from dean0x7d/fix-sign-warnings
Fix minor signedness warnings on clang
parents
934e8dbd
cb6cd695
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/pybind11/eigen.h
include/pybind11/eigen.h
+3
-3
No files found.
include/pybind11/eigen.h
View file @
5289af5f
...
...
@@ -139,7 +139,7 @@ struct type_caster<Type, typename std::enable_if<is_eigen_dense<Type>::value &&
/* Buffer dimensions */
{
(
size_t
)
src
.
size
()
},
/* Strides (in bytes) for each index */
{
sizeof
(
Scalar
)
*
src
.
innerStride
()
}
{
sizeof
(
Scalar
)
*
static_cast
<
size_t
>
(
src
.
innerStride
()
)
}
)).
release
();
}
else
{
return
array
(
buffer_info
(
...
...
@@ -155,8 +155,8 @@ struct type_caster<Type, typename std::enable_if<is_eigen_dense<Type>::value &&
{
(
size_t
)
src
.
rows
(),
(
size_t
)
src
.
cols
()
},
/* Strides (in bytes) for each index */
{
sizeof
(
Scalar
)
*
src
.
rowStride
(),
sizeof
(
Scalar
)
*
src
.
colStride
()
}
{
sizeof
(
Scalar
)
*
static_cast
<
size_t
>
(
src
.
rowStride
()
)
,
sizeof
(
Scalar
)
*
static_cast
<
size_t
>
(
src
.
colStride
()
)
}
)).
release
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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