BUG: match called on invalid number
This commit is contained in:
parent
54dcf6932a
commit
1dc7ae38ea
@ -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 = "_";
|
||||
|
Loading…
x
Reference in New Issue
Block a user