Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Non regression tests for MEDLoader.GetTypesOfField bug
[tools/medcoupling.git]
/
src
/
MEDLoader
/
Swig
/
MEDLoaderTypemaps.i
diff --git
a/src/MEDLoader/Swig/MEDLoaderTypemaps.i
b/src/MEDLoader/Swig/MEDLoaderTypemaps.i
index 96ad8994e0a43f56c06cd909dfcc78f405f97f1a..7e7fde21766be96cecf4c7203889107d5c422cc1 100644
(file)
--- a/
src/MEDLoader/Swig/MEDLoaderTypemaps.i
+++ b/
src/MEDLoader/Swig/MEDLoaderTypemaps.i
@@
-310,7
+310,7
@@
int MEDFileAnyTypeFieldMultiTSgetitemSingleTS__(const MEDFileAnyTypeFieldMultiTS
{
if(elt0 && PyInt_Check(elt0))
{//fmts[3]
{
if(elt0 && PyInt_Check(elt0))
{//fmts[3]
- return
PyInt_AS_LONG(elt0
);
+ return
InterpreteNegativeInt(PyInt_AS_LONG(elt0),self->getNumberOfTS()
);
}
else if(elt0 && PyTuple_Check(elt0))
{
}
else if(elt0 && PyTuple_Check(elt0))
{
@@
-347,7
+347,7
@@
int MEDFileFieldsgetitemSingleTS__(const MEDFileFields *self, PyObject *obj) thr
{
if(PyInt_Check(obj))
{
{
if(PyInt_Check(obj))
{
- return
(int)PyInt_AS_LONG(obj
);
+ return
InterpreteNegativeInt((int)PyInt_AS_LONG(obj),self->getNumberOfFields()
);
}
else if(PyString_Check(obj))
{
}
else if(PyString_Check(obj))
{