Commit b97b25e4 by LoopDawg

Fix StandAlone.cpp compilation warnings

find_first_of returns size_t, was overflowing int.
parent 652db16f
......@@ -176,7 +176,7 @@ public:
fixLine(def);
// The first "=" needs to turn into a space
int equal = def.find_first_of("=");
const size_t equal = def.find_first_of("=");
if (equal != def.npos)
def[equal] = ' ';
......@@ -197,7 +197,7 @@ protected:
void fixLine(std::string& line)
{
// Can't go past a newline in the line
int end = line.find_first_of("\n");
const size_t end = line.find_first_of("\n");
if (end != line.npos)
line = line.substr(0, end);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment