Browse Source

COMP: Eliminate compiler warning on 64-bit build.

David Cole 17 năm trước cách đây
mục cha
commit
974feca643
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      Source/CPack/cmCPackGenerator.cxx

+ 2 - 1
Source/CPack/cmCPackGenerator.cxx

@@ -1221,7 +1221,8 @@ cmCPackGenerator::GetInstallationType(const char *projectName, const char *name)
       installType->DisplayName = installType->Name;
       }
 
-    installType->Index = this->InstallationTypes.size();
+    installType->Index = static_cast<unsigned>(
+      this->InstallationTypes.size());
     }
   return installType;
 }