Crypto: fix magical type

This commit is contained in:
Megamouse 2020-04-18 12:17:57 +02:00
parent 3a6bda4d93
commit e4b6de409a
2 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ bool pkg_install(const std::string& path, atomic_t<double>& sync)
//pkg_log.notice("Extended header: padding2 = 0x%x = %d", ext_header.padding2, ext_header.padding2);
}
if (header.pkg_magic != "\x7FPKG"_u32)
if (header.pkg_magic != std::bit_cast<le_t<u32>>("\x7FPKG"_u32))
{
pkg_log.error("Not a PKG file!");
return false;