diff options
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/cli.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cli/cli.cc b/src/cli/cli.cc index fea44d7..d1631b4 100644 --- a/src/cli/cli.cc +++ b/src/cli/cli.cc @@ -120,11 +120,9 @@ void Cli::view(int level, int base, int lines) curr = curr->get_lower(); } - std::vector<std::array<signed int, LINE_SIZE>> data = - curr->view(base, lines); - - if (dynamic_cast<const Cache *>(curr)) { - + Cache *c = dynamic_cast<Cache *>(curr); + if (c) { + std::cout << *c; } else { std::cout << "dram"; } |