@@ -167,7 +167,7 @@ std::string CPyCppyy::TypeManip::compound(const std::string& name)
167167// for easy identification of fixed size arrays
168168 if (!cpd.empty () && cpd.back () == ' ]' ) {
169169 if (cpd.front () == ' [' )
170- return " []" ; // fixed array any; dimensions handled seperately
170+ return " []" ; // fixed array any; dimensions handled separately
171171
172172 std::ostringstream scpd;
173173 scpd << cpd.substr (0 , cpd.find (' [' )) << " []" ;
@@ -196,7 +196,7 @@ void CPyCppyy::TypeManip::cppscope_to_legalname(std::string& cppscope)
196196{
197197// Change characters illegal in a variable name into '_' to form a legal name.
198198 for (char & c : cppscope) {
199- for (char needle : {' :' , ' >' , ' <' , ' ' , ' ,' , ' &' , ' =' })
199+ for (char needle : {' :' , ' >' , ' <' , ' ' , ' ,' , ' &' , ' =' , ' * ' })
200200 if (c == needle) c = ' _' ;
201201 }
202202}
@@ -266,7 +266,7 @@ std::vector<std::string> CPyCppyy::TypeManip::extract_arg_types(const std::strin
266266// ----------------------------------------------------------------------------
267267Py_ssize_t CPyCppyy::TypeManip::array_size (const std::string& name)
268268{
269- // Extrac the array size from a given type name (assumes 1D arrays)
269+ // Extract the array size from a given type name (assumes 1D arrays)
270270 std::string cleanName = remove_const (name);
271271 if (cleanName[cleanName.size ()-1 ] == ' ]' ) {
272272 std::string::size_type idx = cleanName.rfind (' [' );
0 commit comments