Skip to content

Commit 0b0c238

Browse files
committed
Sync TypeManip
1 parent 7bdf7fa commit 0b0c238

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TypeManip.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
//----------------------------------------------------------------------------
267267
Py_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

Comments
 (0)