1
0
mirror of synced 2025-02-02 12:27:20 +01:00

Change std::size_t format specifier to %zu

This commit is contained in:
Stepland 2020-05-22 11:18:12 +02:00
parent 974c32d237
commit 6f68c7a7a0
2 changed files with 7 additions and 7 deletions

View File

@ -701,17 +701,17 @@ namespace Gameplay {
void Screen::draw_debug() { void Screen::draw_debug() {
if (ImGui::Begin("Gameplay Debug")) { if (ImGui::Begin("Gameplay Debug")) {
if (ImGui::CollapsingHeader("Metrics")) { if (ImGui::CollapsingHeader("Metrics")) {
ImGui::Text("Combo : %lu", combo); ImGui::Text("Combo : %zu", combo);
if (ImGui::TreeNode("Score")) { if (ImGui::TreeNode("Score")) {
ImGui::Text("Raw : %d", score.get_score()); ImGui::Text("Raw : %d", score.get_score());
ImGui::Text("Final : %d", score.get_final_score()); ImGui::Text("Final : %d", score.get_final_score());
ImGui::Text("Shutter value : %d", score.shutter); ImGui::Text("Shutter value : %d", score.shutter);
if (ImGui::TreeNode("Judgement Counts")) { if (ImGui::TreeNode("Judgement Counts")) {
ImGui::Text("PERFECT : %lu", score.judgement_counts.at(Data::Judgement::Perfect)); ImGui::Text("PERFECT : %zu", score.judgement_counts.at(Data::Judgement::Perfect));
ImGui::Text("GREAT : %lu", score.judgement_counts.at(Data::Judgement::Great)); ImGui::Text("GREAT : %zu", score.judgement_counts.at(Data::Judgement::Great));
ImGui::Text("GOOD : %lu", score.judgement_counts.at(Data::Judgement::Good)); ImGui::Text("GOOD : %zu", score.judgement_counts.at(Data::Judgement::Good));
ImGui::Text("POOR : %lu", score.judgement_counts.at(Data::Judgement::Poor)); ImGui::Text("POOR : %zu", score.judgement_counts.at(Data::Judgement::Poor));
ImGui::Text("MISS : %lu", score.judgement_counts.at(Data::Judgement::Miss)); ImGui::Text("MISS : %zu", score.judgement_counts.at(Data::Judgement::Miss));
ImGui::TreePop(); ImGui::TreePop();
} }
ImGui::TreePop(); ImGui::TreePop();

View File

@ -175,7 +175,7 @@ namespace MusicSelect {
if (debug) { if (debug) {
if (ImGui::Begin("Ribbon Debug")) { if (ImGui::Begin("Ribbon Debug")) {
ImGui::Text("float position : %f", float_position); ImGui::Text("float position : %f", float_position);
ImGui::Text("zeroth column : %lu", column_zero); ImGui::Text("zeroth column : %zu", column_zero);
} }
ImGui::End(); ImGui::End();
} }