Fix MSVC++ compile error due to non-const array dimension values.

This commit is contained in:
Robert Knight 2011-08-22 16:36:39 +01:00
parent 6a264f80b7
commit e11cc9193a
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ void FileOps::extractFromZip(const char* zipFilePath, const char* src, const cha
{
// found a match which is now the current file
unzOpenCurrentFile(zipFile);
int chunkSize = 4096;
const int chunkSize = 4096;
char buffer[chunkSize];
std::ofstream outputFile(dest,std::ofstream::binary);

View File

@ -5,7 +5,7 @@
void TestUpdaterOptions::testOldFormatArgs()
{
int argc = 6;
const int argc = 6;
char* argv[argc];
argv[0] = "updater";
argv[1] = "CurrentDir=/path/to/app";