Преглед изворни кода

BUG: match called on invalid number

Bill Hoffman пре 24 година
родитељ
комит
1dc7ae38ea
1 измењених фајлова са 1 додато и 1 уклоњено
  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
-  regex.compile("^[ \t]*(long[ ])?[ \t]*(float|double)[ \t]*$");
+  regex.compile("^[ \t]*(long[ ]|)[ \t]*(float|double)[ \t]*$");
   if(regex.find(element))
     {
     tag = "_";