Skip to content

Commit

Permalink
Used to_string instead
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv committed Mar 10, 2024
1 parent 914e7e6 commit 70800a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/factories/DisplayListFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void DListCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData>
if (Companion::Instance->IsDebug()) {
const auto sz = (sizeof(uint32_t) * cmds.size());

write << "// count: " << (sz / 8) << " DLists\n";
write << "// count: " << std::to_string(sz / 8) << " DLists\n";
if (IS_SEGMENTED(offset)) {
offset = SEGMENT_OFFSET(offset);
}
Expand Down
2 changes: 1 addition & 1 deletion src/factories/VtxFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void VtxCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> r
write << "};\n";

if (Companion::Instance->IsDebug()) {
write << "// count: " << vtx.size() << " Vtxs\n";
write << "// count: " << std::to_string(vtx.size()) << " Vtxs\n";
write << "// 0x" << std::hex << std::uppercase << (offset + (sizeof(VtxRaw) * vtx.size())) << "\n";
}

Expand Down

0 comments on commit 70800a9

Please sign in to comment.