Skip to content

Commit 17067c7

Browse files
committed
ui_dbg.h: fix %lu vs %llu mess via PRIu64
1 parent c78424c commit 17067c7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/ui_dbg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
#*/
5959
#include <stdint.h>
6060
#include <stdbool.h>
61+
#include <inttypes.h> // PRIu64
6162

6263
#if !defined(UI_DBG_USE_Z80) && !defined(UI_DBG_USE_M6502)
6364
#error "please define UI_DBG_USE_Z80 or UI_DBG_USE_M6502"
@@ -1366,7 +1367,7 @@ static void _ui_dbg_stopwatch_draw(ui_dbg_t* win) {
13661367
if (win->stopwatch.frame_ticks > 0) {
13671368
frames = (double)cycle_count / (double)win->stopwatch.frame_ticks;
13681369
}
1369-
ImGui::Text("%lu ticks", cycle_count);
1370+
ImGui::Text("%" PRIu64 " ticks", cycle_count);
13701371
if (ImGui::IsItemHovered()) {
13711372
ImGui::SetTooltip("milliseconds: %.3f\nraster lines: %.3f\nframes: %.3f\n", ms, raster_lines, frames);
13721373
}

0 commit comments

Comments
 (0)