From 697ce7b1ab2ffc5f1bf18bf9bfc37462fcb38183 Mon Sep 17 00:00:00 2001 From: nakeee Date: Wed, 17 Jun 2009 21:44:03 +0000 Subject: createtest fixes and compile fixes for linux git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3482 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPCodeUtil.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Source/Core/DSPCore/Src/DSPCodeUtil.cpp') diff --git a/Source/Core/DSPCore/Src/DSPCodeUtil.cpp b/Source/Core/DSPCore/Src/DSPCodeUtil.cpp index fda14e29f8..e41866e414 100644 --- a/Source/Core/DSPCore/Src/DSPCodeUtil.cpp +++ b/Source/Core/DSPCore/Src/DSPCodeUtil.cpp @@ -68,7 +68,7 @@ bool Compare(const std::vector &code1, const std::vector &code2) { if (code1.size() != code2.size()) printf("Size difference! 1=%i 2=%i\n", (int)code1.size(), (int)code2.size()); - int count_equal = 0; + u32 count_equal = 0; const int min_size = (int)std::min(code1.size(), code2.size()); AssemblerSettings settings; @@ -135,7 +135,7 @@ void CodeToHeader(const std::vector &code, std::string _filename, header.append("#endif\n\n"); header.append("\t{\n\t\t"); - for (int j = 0; j < code.size(); j++) + for (u32 j = 0; j < code.size(); j++) { if (j && ((j & 15) == 0)) header.append("\n\t\t"); @@ -147,7 +147,7 @@ void CodeToHeader(const std::vector &code, std::string _filename, header.append("};\n"); } -void CodesToHeader(const std::vector *codes, const std::vector filenames, +void CodesToHeader(const std::vector *codes, const std::vector* filenames, int numCodes, const char *name, std::string &header) { char buffer[1024]; @@ -164,7 +164,8 @@ void CodesToHeader(const std::vector *codes, const std::vector for (int i = 0; i < numCodes; i++) { std::string filename; - SplitPath(filenames.at(i), NULL, &filename, NULL); + SplitPath(filenames->at(i), NULL, &filename, NULL); + // printf("files %s\n", (filenames->at(i).c_str())); sprintf(buffer, "%s\t\"%s\",\n", buffer, filename.c_str()); } sprintf(buffer, "%s};\n\n", buffer); @@ -187,7 +188,7 @@ void CodesToHeader(const std::vector *codes, const std::vector code_copy.push_back(0); header.append("\t{\n\t\t"); - for (int j = 0; j < codes[i].size(); j++) + for (u32 j = 0; j < codes[i].size(); j++) { if (j && ((j & 15) == 0)) header.append("\n\t\t"); -- cgit v1.2.3