summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-09 17:44:30 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-09 17:44:30 (GMT)
commit1dc7ae38ead50498b9e813d7c6e96f9d850b45ea (patch)
treedf177ba3354526362dee9af2ba9bcba93cc61cca /Source
parent54dcf6932ab03c7d4505ca5f88cb89a223839e66 (diff)
downloadCMake-1dc7ae38ead50498b9e813d7c6e96f9d850b45ea.zip
CMake-1dc7ae38ead50498b9e813d7c6e96f9d850b45ea.tar.gz
CMake-1dc7ae38ead50498b9e813d7c6e96f9d850b45ea.tar.bz2
BUG: match called on invalid number
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCableDefineSetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCableDefineSetCommand.cxx b/Source/cmCableDefineSetCommand.cxx
index f7552b6..6f19280 100644
--- a/Source/cmCableDefineSetCommand.cxx
+++ b/Source/cmCableDefineSetCommand.cxx
@@ -220,7 +220,7 @@ cmCableDefineSetCommand::GenerateTag(const std::string& element,
}
// Test for basic floating-point type
- regex.compile("^[ \t]*(long[ ])?[ \t]*(float|double)[ \t]*$");
+ regex.compile("^[ \t]*(long[ ]|)[ \t]*(float|double)[ \t]*$");
if(regex.find(element))
{
tag = "_";