瀏覽代碼

Merge topic 'notes_timestamp'

0987a399 CTest: fix Time formatting in Notes.xml

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1428
Brad King 8 年之前
父節點
當前提交
4857aec5d5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmCTest.cxx

+ 2 - 1
Source/cmCTest.cxx

@@ -12,6 +12,7 @@
 #include "cmsys/String.hxx"
 #include "cmsys/SystemInformation.hxx"
 #include <algorithm>
+#include <cstdint>
 #include <ctype.h>
 #include <iostream>
 #include <map>
@@ -1421,7 +1422,7 @@ int cmCTest::GenerateCTestNotesOutput(cmXMLWriter& xml,
     std::string note_time = this->CurrentTime();
     xml.StartElement("Note");
     xml.Attribute("Name", file);
-    xml.Element("Time", cmSystemTools::GetTime());
+    xml.Element("Time", static_cast<uint64_t>(cmSystemTools::GetTime()));
     xml.Element("DateTime", note_time);
     xml.StartElement("Text");
     cmsys::ifstream ifs(file.c_str());