diff options
Diffstat (limited to 'Source/cmCableClassSet.cxx')
-rw-r--r-- | Source/cmCableClassSet.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCableClassSet.cxx b/Source/cmCableClassSet.cxx index d46ee81..39acd40 100644 --- a/Source/cmCableClassSet.cxx +++ b/Source/cmCableClassSet.cxx @@ -717,8 +717,10 @@ bool ElementCombinationGenerator::GenerateTag(const cmStdString& element) if(regex.find(element)) { m_Tag = "_"; - if(regex.match(1) == "long ") + if(regex.start(1) > 0 && regex.match(1) == "long ") + { m_Tag.append("l"); + } m_Tag.append(regex.match(2)); return true; } |