Skip to content
Snippets Groups Projects
Commit 7c68829c authored by lhausamm's avatar lhausamm
Browse files

fix some unrespected const

parent 3cb41315
No related branches found
No related tags found
1 merge request!3Grackle3
......@@ -9,7 +9,7 @@ const size_t class_size[class_count] = {
sizeof(struct cooling_function_data)
};
const char *class_name[class_count] = {
char *class_name[class_count] = {
"UnitSystem",
"Part",
"SwiftParams",
......@@ -66,7 +66,7 @@ PyObject* pytools_return(void *p, int class)
/* get class information */
nber_bytes = class_size[class];
const char *class_pyname = class_name[class];
char *class_pyname = class_name[class];
/* import python class */
python_class = pytools_import(module_name, class_pyname);
......@@ -131,7 +131,7 @@ char* pytools_get_type_name(PyObject *obj)
char* pytools_construct(PyObject* obj, int class)
{
char *module_name = "pyswiftsim.structure";
const char *class_pyname;
char *class_pyname;
/* check python class */
if (class >= class_count)
......
......@@ -55,7 +55,7 @@ enum swift_class {
/* size of each structure in enum swift_class */
extern const size_t class_size[];
/* name of each Python class representing a swift class */
extern const char *class_name[];
extern char *class_name[];
/* error code in pyswiftsim */
enum error_code {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment