Skip to content

Commit 80ea6bb

Browse files
author
nitrocaster
committed
Fix signed/unsigned mismatch warnings.
1 parent 27172eb commit 80ea6bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/xrScriptEngine/ScriptExporter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void ScriptExporter::Node::Export(lua_State *luaState)
2929
return;
3030
}
3131
// export dependencies recursively
32-
for (int i = 0; i<depCount; i++)
32+
for (size_t i = 0; i<depCount; i++)
3333
{
3434
// check if 'deps[i]' depends on 'node'
3535
for (Node *n = GetFirst(); n; n = n->GetNext())
@@ -50,12 +50,12 @@ void ScriptExporter::Node::Export(lua_State *luaState)
5050

5151
bool ScriptExporter::Node::HasDependency(const Node *node) const
5252
{
53-
for (int i = 0; i<depCount; i++)
53+
for (size_t i = 0; i<depCount; i++)
5454
{
5555
if (!strcmp(deps[i], node->id))
5656
return true;
5757
}
58-
for (int i = 0; i<depCount; i++)
58+
for (size_t i = 0; i<depCount; i++)
5959
{
6060
// check if 'deps[i]' depends on 'node'
6161
for (Node *n = GetFirst(); n; n = n->GetNext())

src/xrScriptEngine/script_engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ void CScriptEngine::parse_script_namespace(const char *name, char *ns, u32 nsSiz
11381138
}
11391139
else
11401140
{
1141-
VERIFY(p-name+1<=nsSize);
1141+
VERIFY(u32(p-name+1)<=nsSize);
11421142
strncpy(ns, name, p-name);
11431143
ns[p-name] = 0;
11441144
}

0 commit comments

Comments
 (0)