Salome HOME
Merge branch 'V9_4_BR'
authorvsr <vsr@opencascade.com>
Fri, 6 Dec 2019 13:56:02 +0000 (16:56 +0300)
committervsr <vsr@opencascade.com>
Fri, 6 Dec 2019 13:56:06 +0000 (16:56 +0300)
CMakeLists.txt
src/runtime/TypeConversions.cxx

index 80065d380eb44d9fbaa58c51049cfe27574139c3..06496287630f6031dcd60202953a28019d15c4fd 100644 (file)
@@ -37,7 +37,7 @@ SET(${PROJECT_NAME_UC}_MINOR_VERSION 4)
 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
-SET(${PROJECT_NAME_UC}_VERSION_DEV 0)
+SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 
 # Common CMake macros
 # ===================
index 9f2c738ee8a1ff972dec643b042dbbb29ef433f4..2c76e0e7acbbef49b4f1a527193efe24df734a81 100644 (file)
@@ -793,7 +793,7 @@ namespace YACS
               // the objref is used by Python as a string (prefix:value) keep it as a string
               Py_ssize_t size;
               std::string s;
-              const char *ptr = (char*) PyUnicode_AsUTF8AndSize(o, &size);
+              const char *ptr = PyUnicode_AsUTF8AndSize(o, &size);
               if (!ptr)
                 throw YACS::ENGINE::ConversionException("Conversion from PyUnicode to string failed");
               s.assign(ptr, size);
@@ -846,7 +846,7 @@ namespace YACS
                 }
               Py_ssize_t size;
               std::string mystr;
-              const char *ptr = (char*) PyUnicode_AsUTF8AndSize(pystring, &size);
+              const char *ptr = PyUnicode_AsUTF8AndSize(pystring, &size);
               if (!ptr)
                 throw YACS::ENGINE::ConversionException("Conversion from PyUnicode to string failed");
               mystr.assign(ptr, size);