From 78eecbf6d704cf178fb0310f7e1c180d2d2f3d4d Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 10 May 2009 13:21:45 +0200 Subject: [PATCH] Use 64 bits for debug counters Has happened 32 bits were not enough for some test. Signed-off-by: Marco Costalba --- src/misc.cpp | 4 ++-- src/misc.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/misc.cpp b/src/misc.cpp index 246cfd2d..ea872f88 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -81,8 +81,8 @@ static const string AppTag = ""; //// Variables //// -long dbg_cnt0 = 0; -long dbg_cnt1 = 0; +uint64_t dbg_cnt0 = 0; +uint64_t dbg_cnt1 = 0; bool dbg_show_mean = false; bool dbg_show_hit_rate = false; diff --git a/src/misc.h b/src/misc.h index d74424d0..d954f0a3 100644 --- a/src/misc.h +++ b/src/misc.h @@ -30,6 +30,7 @@ #include #include "application.h" +#include "types.h" //// //// Macros @@ -56,8 +57,8 @@ extern int Bioskey(); extern bool dbg_show_mean; extern bool dbg_show_hit_rate; -extern long dbg_cnt0; -extern long dbg_cnt1; +extern uint64_t dbg_cnt0; +extern uint64_t dbg_cnt1; extern void dbg_hit_on(bool b); extern void dbg_hit_on_c(bool c, bool b); -- 2.39.2