Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
dee8fe3d
Commit
dee8fe3d
authored
10 months ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Plain Diff
[j.5] Fix size detection of numeric types (backport from main, closed
#951
) ()
Merging branch 'j.5' into 'r21'. See merge request
!2543
parents
2d7e2aa7
55fea5ab
No related branches found
No related tags found
1 merge request
!2543
Fix size detection of numeric types (backport from main, closed #951)
Pipeline
#141419
passed
10 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PyCore/Embed/PyInterpreter.cpp
+4
-4
4 additions, 4 deletions
PyCore/Embed/PyInterpreter.cpp
with
4 additions
and
4 deletions
PyCore/Embed/PyInterpreter.cpp
+
4
−
4
View file @
dee8fe3d
...
@@ -379,12 +379,12 @@ std::vector<double> PyInterpreter::Numpy::createVectorFromArray2D(PyObject* pyob
...
@@ -379,12 +379,12 @@ std::vector<double> PyInterpreter::Numpy::createVectorFromArray2D(PyObject* pyob
// prevent the error from Windows compiler MSVC 19:
// prevent the error from Windows compiler MSVC 19:
// `error C2196: case value 'NPY_LONG' already used`
// `error C2196: case value 'NPY_LONG' already used`
#if
ndef _W
IN32
#if
NPY_LONG != NPY_
IN
T
32
case
NPY_LONG
:
case
NPY_LONG
:
_realArray2DToDouble
<
npy_long
>
(
npArray_ptr
,
rowIdxMax
,
colIdxMax
,
data
);
_realArray2DToDouble
<
npy_long
>
(
npArray_ptr
,
rowIdxMax
,
colIdxMax
,
data
);
break
;
break
;
#endif
// _WIN32
#endif
// unsigned int
// unsigned int
case
NPY_UINT8
:
case
NPY_UINT8
:
...
@@ -399,11 +399,11 @@ std::vector<double> PyInterpreter::Numpy::createVectorFromArray2D(PyObject* pyob
...
@@ -399,11 +399,11 @@ std::vector<double> PyInterpreter::Numpy::createVectorFromArray2D(PyObject* pyob
// prevent the error from Windows compiler MSVC 19:
// prevent the error from Windows compiler MSVC 19:
// `error C2196: case value 'NPY_ULONG' already used`
// `error C2196: case value 'NPY_ULONG' already used`
#if
ndef _W
IN32
#if
NPY_ULONG != NPY_U
IN
T
32
case
NPY_ULONG
:
case
NPY_ULONG
:
_realArray2DToDouble
<
npy_ulong
>
(
npArray_ptr
,
rowIdxMax
,
colIdxMax
,
data
);
_realArray2DToDouble
<
npy_ulong
>
(
npArray_ptr
,
rowIdxMax
,
colIdxMax
,
data
);
break
;
break
;
#endif
// _WIN32
#endif
default:
default:
throw
std
::
runtime_error
(
errorDescription
(
"PyInterpreter::Numpy: "
throw
std
::
runtime_error
(
errorDescription
(
"PyInterpreter::Numpy: "
...
...
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