Compiles on UNIX based systems
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user