diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-19 04:38:48 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-19 04:38:48 (GMT) |
commit | d24115888572d50bfb9a89e2422ee4ecb10b47c3 (patch) | |
tree | 04cdadafdc2a9a3561cbafccb3e62707f8aa3fe7 | |
parent | 5ab173b5eae396c5305ea60a453e3df4baf68d23 (diff) | |
download | CMake-d24115888572d50bfb9a89e2422ee4ecb10b47c3.zip CMake-d24115888572d50bfb9a89e2422ee4ecb10b47c3.tar.gz CMake-d24115888572d50bfb9a89e2422ee4ecb10b47c3.tar.bz2 |
BUG: make sure regex match has a string to match
-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; } |