Переглянути джерело

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