diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-03-05 00:57:56 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-03-05 00:57:56 -0600 |
| commit | cfd2ec35ce03a36c10b005b952f765f035c8b836 (patch) | |
| tree | aa0f9c819550c7b492ffd56d5440a83d3889f2d0 | |
| parent | a20e0a355089badfa4536639dfc95f64fb8428a2 (diff) | |
Fixed pad using hex generation sometimes
| -rw-r--r-- | src/Companion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 1493ee2..4df7fef 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -170,7 +170,7 @@ void Companion::ExtractNode(YAML::Node& node, std::string& name, SWrapper* binar if(node["pad"]){ auto filename = this->gCurrentDirectory.filename().string(); auto pad = GetSafeNode<uint32_t>(node, "pad"); - stream << "char pad_" << filename << "_" << gCurrentPad++ << "[] = {\n" << tab; + stream << "char pad_" << filename << "_" << std::to_string(gCurrentPad++) << "[] = {\n" << tab; for(int i = 0; i < pad; i++){ stream << "0x00, "; } |
