From cd12fd1cbbbbda6d2b4d339ef3290d1757ff5ea8 Mon Sep 17 00:00:00 2001 From: Scott Beamer Date: Wed, 14 Sep 2016 11:36:47 -0700 Subject: [PATCH] fix clang support for emulator-debug --- csrc/emulator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/csrc/emulator.cc b/csrc/emulator.cc index a6b04de1..db914704 100644 --- a/csrc/emulator.cc +++ b/csrc/emulator.cc @@ -98,14 +98,14 @@ int main(int argc, char** argv) #if VM_TRACE bool dump = tfp && trace_count >= start; if (dump) - tfp->dump(trace_count * 2); + tfp->dump(static_cast(trace_count * 2)); #endif tile->clk = 1; tile->eval(); #if VM_TRACE if (dump) - tfp->dump(trace_count * 2 + 1); + tfp->dump(static_cast(trace_count * 2 + 1)); #endif trace_count++; }