Skip to content

Commit

Permalink
Fix signed/unsigned mismatch warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 15, 2016
1 parent 27172eb commit 80ea6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/xrScriptEngine/ScriptExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void ScriptExporter::Node::Export(lua_State *luaState)
return;
}
// export dependencies recursively
for (int i = 0; i<depCount; i++)
for (size_t i = 0; i<depCount; i++)
{
// check if 'deps[i]' depends on 'node'
for (Node *n = GetFirst(); n; n = n->GetNext())
Expand All @@ -50,12 +50,12 @@ void ScriptExporter::Node::Export(lua_State *luaState)

bool ScriptExporter::Node::HasDependency(const Node *node) const
{
for (int i = 0; i<depCount; i++)
for (size_t i = 0; i<depCount; i++)
{
if (!strcmp(deps[i], node->id))
return true;
}
for (int i = 0; i<depCount; i++)
for (size_t i = 0; i<depCount; i++)
{
// check if 'deps[i]' depends on 'node'
for (Node *n = GetFirst(); n; n = n->GetNext())
Expand Down
2 changes: 1 addition & 1 deletion src/xrScriptEngine/script_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ void CScriptEngine::parse_script_namespace(const char *name, char *ns, u32 nsSiz
}
else
{
VERIFY(p-name+1<=nsSize);
VERIFY(u32(p-name+1)<=nsSize);
strncpy(ns, name, p-name);
ns[p-name] = 0;
}
Expand Down

0 comments on commit 80ea6bb

Please sign in to comment.