Просмотр исходного кода

BUG: Multi-line functions must also increment line number, not the pointer.

Brad King 23 лет назад
Родитель
Сommit
8a275e798d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmListFileCache.cxx

+ 1 - 1
Source/cmListFileCache.cxx

@@ -220,7 +220,7 @@ bool cmListFileCache::ParseFunction(std::ifstream& fin,
         // read lines until the end paren is found
         if(fin.getline(inbuffer, BUFFER_SIZE ) )
           {
-          ++line;
+          if(line) { ++*line; }
           RemoveComments(inbuffer);
           // Check for comment lines and ignore them.
           if(blankLine.find(inbuffer))