Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.io.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
bob
bob.io.base
Commits
1e352a66
Commit
1e352a66
authored
11 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Fixes compilation on 32-bit machines
parent
176eb1df
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xbob/io/hdf5.cpp
+3
-1
3 additions, 1 deletion
xbob/io/hdf5.cpp
with
3 additions
and
1 deletion
xbob/io/hdf5.cpp
+
3
−
1
View file @
1e352a66
...
...
@@ -332,6 +332,7 @@ static bob::io::hdf5type PyBobIo_H5FromTypenum (int type_num) {
#ifdef NPY_COMPLEX256
case
NPY_COMPLEX256
:
return
bob
::
io
::
c256
;
#endif
#if define(__LP64__) || defined(__APPLE__)
case
NPY_LONGLONG
:
switch
(
NPY_BITSOF_LONGLONG
)
{
case
8
:
return
bob
::
io
::
i8
;
...
...
@@ -350,6 +351,7 @@ static bob::io::hdf5type PyBobIo_H5FromTypenum (int type_num) {
default:
return
bob
::
io
::
unsupported
;
}
break
;
#endif
default
:
return
bob
::
io
::
unsupported
;
}
...
...
@@ -1989,7 +1991,7 @@ static PyObject* PyBobIoHDF5File_SetAttribute(PyBobIoHDF5FileObject* self, PyObj
PyObject
*
converted
=
0
;
int
is_array
=
PyBobIoHDF5File_GetObjectType
(
value
,
type
,
&
converted
);
auto
converted_
=
make_xsafe
(
converted
);
if
(
is_array
<
0
)
{
///< error condition, signal
PyErr_Format
(
PyExc_TypeError
,
"error setting attribute `%s' of resource `%s' at HDF5 file `%s': no support for storing objects of type `%s' on HDF5 files"
,
name
,
path
,
self
->
f
->
filename
().
c_str
(),
Py_TYPE
(
value
)
->
tp_name
);
return
0
;
...
...
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