Compiles on UNIX based systems

This commit is contained in:
2025-07-21 19:57:05 +01:00
parent d6568a8d2f
commit cde435ba55
9 changed files with 65 additions and 28 deletions

View File

@@ -73,7 +73,7 @@ namespace LXC::Util
};
// Finds the location of a given index within a file //
inline bool GetFileLocationAtIndex(FileLocation& location, const std::string& file, __int32 index)
inline bool GetFileLocationAtIndex(FileLocation& location, const std::string& file, uint32_t index)
{
// Resets location //
location.line = 1;
@@ -84,7 +84,7 @@ namespace LXC::Util
return false;
// Finds the location //
__int32 localIndex = 0;
uint32_t localIndex = 0;
while (localIndex != index)
{
if (file[localIndex] == '\n')