Skip to content
Snippets Groups Projects
Commit 95e40dc4 authored by Oliver Bock's avatar Oliver Bock
Browse files

Fixed remaining type issues

parent c3d61b4e
Branches
Tags
No related merge requests found
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
ResourceFactory::ResourceFactory() ResourceFactory::ResourceFactory()
{ {
// determine number of resources // determine number of resources
int resourceCount = c_ResourceIndex[0][0]; size_t resourceCount = c_ResourceIndex[0][0];
// import each resource into factory cache // import each resource into factory cache
for(int i = 0; i < resourceCount; ++i) { for(size_t i = 0; i < resourceCount; ++i) {
// prepare temporary buffer // prepare temporary buffer
size_t resourceSize = c_ResourceIndex[i+1][1]; size_t resourceSize = c_ResourceIndex[i+1][1];
......
...@@ -105,7 +105,7 @@ extern const string c_ResourceIdentifiers[]; ...@@ -105,7 +105,7 @@ extern const string c_ResourceIdentifiers[];
* \todo Does this need to be global? * \todo Does this need to be global?
* Maybe we should wrap a class around the generated resources? * Maybe we should wrap a class around the generated resources?
*/ */
extern const unsigned int c_ResourceIndex[][2]; extern const size_t c_ResourceIndex[][2];
/** /**
* \brief Declaration of the external resource storage container * \brief Declaration of the external resource storage container
......
...@@ -97,7 +97,7 @@ void ResourceCompiler::compile() ...@@ -97,7 +97,7 @@ void ResourceCompiler::compile()
outputFile << endl << "};" << endl << endl; outputFile << endl << "};" << endl << endl;
output = resourceIndexInitializer.str(); output = resourceIndexInitializer.str();
outputFile << "extern const unsigned size_t c_ResourceIndex[][2] = {" << endl; outputFile << "extern const size_t c_ResourceIndex[][2] = {" << endl;
outputFile << output.substr(0, output.length() - 1); outputFile << output.substr(0, output.length() - 1);
outputFile << endl << "};" << endl << endl; outputFile << endl << "};" << endl << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment