Commit 95e40dc4 authored by Oliver Bock's avatar Oliver Bock
Browse files

Fixed remaining type issues

parent c3d61b4e
......@@ -23,10 +23,10 @@
ResourceFactory::ResourceFactory()
{
// determine number of resources
int resourceCount = c_ResourceIndex[0][0];
size_t resourceCount = c_ResourceIndex[0][0];
// import each resource into factory cache
for(int i = 0; i < resourceCount; ++i) {
for(size_t i = 0; i < resourceCount; ++i) {
// prepare temporary buffer
size_t resourceSize = c_ResourceIndex[i+1][1];
......
......@@ -105,7 +105,7 @@ extern const string c_ResourceIdentifiers[];
* \todo Does this need to be global?
* 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
......
......@@ -97,7 +97,7 @@ void ResourceCompiler::compile()
outputFile << endl << "};" << endl << endl;
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 << endl << "};" << endl << endl;
......
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