We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e90833 commit 66eacb4Copy full SHA for 66eacb4
gap_cpp_headers/gap_cpp_mapping.hpp
@@ -47,7 +47,7 @@ struct GAP_getter<char*>
47
{
48
if(!isa(recval))
49
throw GAPException("Invalid attempt to read string");
50
- return (char*)CHARS_STRING(recval);
+ return CSTR_STRING(recval);
51
}
52
};
53
@@ -61,7 +61,7 @@ struct GAP_getter<std::string>
61
62
63
64
- return std::string((char*)CHARS_STRING(recval));
+ return std::string(CONST_CSTR_STRING(recval));
65
66
67
0 commit comments