diff --git a/src/generator.cpp b/src/generator.cpp index 2556c87..5c61239 100644 --- a/src/generator.cpp +++ b/src/generator.cpp @@ -57,6 +57,8 @@ static uint64_t fnv1a_64(const void* data, size_t len) { if (i + 1 != filedata.size()) cpp << ", "; } cpp << "\n};\n"; + // Reset to decimal format + cpp << std::dec; cpp << "static const size_t filedata_len = " << filedata.size() << ";\n"; cpp << "static const char* file_hash = \"" << hash << "\";\n"; cpp << R"cpp( @@ -144,6 +146,8 @@ void generate_folder_code(const std::string& source, const std::string& destfold if (i + 1 != filedata.size()) cpp << ", "; } cpp << "\n};\n"; + // Reset to decimal format + cpp << std::dec; cpp << "static const size_t len_" << var << " = " << filedata.size() << ";\n"; cpp << "static const char* hash_" << var << " = \"" << hash << "\";\n"; cpp << "static const char* rel_" << var << " = \"" << rel << "\";\n";