Explorar o código

COMP: Eliminate compiler warning on 64-bit build.

David Cole %!s(int64=17) %!d(string=hai) anos
pai
achega
974feca643
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;
 }