BUG: match called on invalid number

This commit is contained in:
Bill Hoffman 2001-05-09 13:44:30 -04:00
parent 54dcf6932a
commit 1dc7ae38ea
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "_";