diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-01-31 14:50:31 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-01-31 14:50:31 -0600 |
| commit | dadf7414ee87ff64d9da433b67a3a7c555f9c76c (patch) | |
| tree | 27283165f0d568ca4e3273a07c5c8f06e6fdd6aa /src | |
| parent | 39fcdc86d69e2f5410b7e975ec36f56a7b7c692d (diff) | |
Fixed windows issues
Diffstat (limited to 'src')
| -rw-r--r-- | src/factories/sm64/GeoLayoutFactory.cpp | 2 | ||||
| -rw-r--r-- | src/factories/sm64/geo/GeoCommand.h | 2 | ||||
| -rw-r--r-- | src/utils/TorchUtils.h | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/factories/sm64/GeoLayoutFactory.cpp b/src/factories/sm64/GeoLayoutFactory.cpp index 520b973..844b8fb 100644 --- a/src/factories/sm64/GeoLayoutFactory.cpp +++ b/src/factories/sm64/GeoLayoutFactory.cpp @@ -555,7 +555,7 @@ std::optional<std::shared_ptr<IParsedData>> SM64::GeoLayoutFactory::parse(std::v } } - commands.push_back({opcode, arguments}); + commands.push_back({ opcode, arguments }); } return std::make_shared<GeoLayout>(commands); diff --git a/src/factories/sm64/geo/GeoCommand.h b/src/factories/sm64/geo/GeoCommand.h index 66526dc..2bad32d 100644 --- a/src/factories/sm64/geo/GeoCommand.h +++ b/src/factories/sm64/geo/GeoCommand.h @@ -199,7 +199,7 @@ inline std::ostream& operator<<(std::ostream& out, const GeoOpcode& opcode) { BSWAP32((*(s32 *) &cmd[CMD_PROCESS_OFFSET(offset)])) #define cur_geo_cmd_u32(offset) \ - BSWAP32((*(uint32_t *) &cmd[CMD_PROCESS_OFFSET(offset)])) + (uint32_t) BSWAP32((*(uint32_t *) &cmd[CMD_PROCESS_OFFSET(offset)])) class GeoLayoutCommand { public: diff --git a/src/utils/TorchUtils.h b/src/utils/TorchUtils.h index e3d89e6..6c8b6c4 100644 --- a/src/utils/TorchUtils.h +++ b/src/utils/TorchUtils.h @@ -4,6 +4,7 @@ #include <fstream> #include <sstream> #include <iomanip> +#include <algorithm> namespace Torch { template< typename T > |
