Browse Source

BUG: match called on invalid number

Bill Hoffman 24 years ago
parent
commit
1dc7ae38ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmCableDefineSetCommand.cxx

+ 1 - 1
Source/cmCableDefineSetCommand.cxx

@@ -220,7 +220,7 @@ cmCableDefineSetCommand::GenerateTag(const std::string& element,
     }
     }
 
 
   // Test for basic floating-point type
   // 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))
   if(regex.find(element))
     {
     {
     tag = "_";
     tag = "_";