1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-21 01:27:14 +02:00

Changes required to compile on x64 and against extra compiler warnings.

This commit is contained in:
Sandu Liviu Catalin
2015-11-01 05:36:03 +02:00
parent b42bc2930c
commit 2409a896df
40 changed files with 222 additions and 51 deletions

@ -390,7 +390,7 @@ const SQChar * LeftStr(const SQChar * t, SQChar f, SQUint32 w) noexcept
w = 0;
}
// Is the string empty?
else if (n < 0)
else if (n == 0)
{
LogWrn("Invalid string length: %d < 0", n);
}
@ -430,7 +430,7 @@ const SQChar * LeftStr(const SQChar * t, SQChar f, SQUint32 w, SQUint32 o) noexc
w = 0;
}
// Is the string empty?
else if (n < 0)
else if (n == 0)
{
LogWrn("Invalid string length: %d < 0", n);
}
@ -471,7 +471,7 @@ const SQChar * RightStr(const SQChar * t, SQChar f, SQUint32 w) noexcept
w = 0;
}
// Is the string empty?
else if (n < 0)
else if (n == 0)
{
LogWrn("Invalid string length: %d < 0", n);
}
@ -511,7 +511,7 @@ const SQChar * RightStr(const SQChar * t, SQChar f, SQUint32 w, SQUint32 o) noex
w = 0;
}
// Is the string empty?
else if (n < 0)
else if (n == 0)
{
LogWrn("Invalid string length: %d < 0", n);
}
@ -552,7 +552,7 @@ const SQChar * CenterStr(const SQChar * t, SQChar f, SQUint32 w) noexcept
w = 0;
}
// Is the string empty?
else if (n < 0)
else if (n == 0)
{
LogWrn("Invalid string length: %d < 0", n);
}