Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stack Of Tasks
eigenpy
Commits
2c12261d
Verified
Commit
2c12261d
authored
1 year ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
core: fix support of int32 and int64 support on Windows platforms
parent
03775d2e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#35644
passed with warnings
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/eigenpy/numpy-type.hpp
+8
-2
8 additions, 2 deletions
include/eigenpy/numpy-type.hpp
with
8 additions
and
2 deletions
include/eigenpy/numpy-type.hpp
+
8
−
2
View file @
2c12261d
...
...
@@ -24,14 +24,20 @@ bool np_type_is_convertible_into_scalar(const int np_type) {
if
(
NumpyEquivalentType
<
Scalar
>::
type_code
==
np_type
)
return
true
;
switch
(
np_type
)
{
#ifdef WIN32
case
NPY_INT
:
case
NPY_LONG
:
return
FromTypeToType
<
int
,
Scalar
>::
value
;
#ifdef WIN32
case
NPY_INT64
:
case
NPY_LONGLONG
:
return
FromTypeToType
<
__int64
,
Scalar
>::
value
;
#endif
#else
case
NPY_INT
:
return
FromTypeToType
<
int
,
Scalar
>::
value
;
case
NPY_LONG
:
case
NPY_LONGLONG
:
return
FromTypeToType
<
long
,
Scalar
>::
value
;
#endif
case
NPY_FLOAT
:
return
FromTypeToType
<
float
,
Scalar
>::
value
;
case
NPY_CFLOAT
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment