From 47ce2772e4e873a4e252e4091a258788ed29e705 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 30 Dec 2008 14:05:20 +0000 Subject: [PATCH] 0020062: [CEA 295] Type coherence in *.i files --- src/Batch_SWIG/libBatch_Swig_typemap.i | 8 ++++---- src/LifeCycleCORBA_SWIG/libSALOME_LifeCycleCORBA.i | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Batch_SWIG/libBatch_Swig_typemap.i b/src/Batch_SWIG/libBatch_Swig_typemap.i index 7af7332b0..a8e577c6c 100644 --- a/src/Batch_SWIG/libBatch_Swig_typemap.i +++ b/src/Batch_SWIG/libBatch_Swig_typemap.i @@ -87,7 +87,7 @@ // on itere sur toutes les clefs du dictionnaire, et on passe par la classe PyVersatile // qui convertit un Versatile en PyObject et vice versa PyObject *key, *value; - int pos = 0; + Py_ssize_t pos = 0; while (PyDict_Next($input, &pos, &key, &value)) { std::string mk = PyString_AsString(key); Batch::PyVersatile PyV = value; @@ -121,7 +121,7 @@ // on itere sur toutes les clefs du dictionnaire, et on passe par la classe PyVersatile // qui convertit un Versatile en PyObject et vice versa PyObject *key, *value; - int pos = 0; + Py_ssize_t pos = 0; while (PyDict_Next($input, &pos, &key, &value)) { std::string mk = PyString_AsString(key); Batch::PyVersatile PyV = value; @@ -173,7 +173,7 @@ // on itere sur toutes les clefs du dictionnaire PyObject *key, *value; - int pos = 0; + Py_ssize_t pos = 0; while (PyDict_Next($input, &pos, &key, &value)) { std::string mk = PyString_AsString(key); std::string val = PyString_AsString(value); @@ -195,7 +195,7 @@ // on itere sur toutes les clefs du dictionnaire PyObject *key, *value; - int pos = 0; + Py_ssize_t pos = 0; while (PyDict_Next($input, &pos, &key, &value)) { std::string mk = PyString_AsString(key); std::string val = PyString_AsString(value); diff --git a/src/LifeCycleCORBA_SWIG/libSALOME_LifeCycleCORBA.i b/src/LifeCycleCORBA_SWIG/libSALOME_LifeCycleCORBA.i index e2200f387..949aa6dd1 100644 --- a/src/LifeCycleCORBA_SWIG/libSALOME_LifeCycleCORBA.i +++ b/src/LifeCycleCORBA_SWIG/libSALOME_LifeCycleCORBA.i @@ -171,7 +171,7 @@ struct omniORBpyAPI { param->parallelLib = CORBA::string_dup(""); param->nb_component_nodes = 0; PyObject *key, *value; - int pos = 0; + Py_ssize_t pos = 0; while (PyDict_Next($input, &pos, &key, &value)) { char* keystr = PyString_AsString(key); -- 2.39.2