summaryrefslogtreecommitdiff
path: root/examples/triage/byte.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2020-06-08 23:11:12 -0400
committerRusty Wagner <rusty@vector35.com>2020-06-09 18:59:43 -0400
commit7b2700b2748b9513811ab6521c9b57e23175c1e2 (patch)
tree3d21461fb775caf07a7bb79a92057bf8f222b827 /examples/triage/byte.cpp
parentecc69a0da9a7f37e9e126beb17c20e537be92e22 (diff)
Fix warnings
Diffstat (limited to 'examples/triage/byte.cpp')
-rw-r--r--examples/triage/byte.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/triage/byte.cpp b/examples/triage/byte.cpp
index 69305430..9fdb80be 100644
--- a/examples/triage/byte.cpp
+++ b/examples/triage/byte.cpp
@@ -265,7 +265,7 @@ void ByteView::adjustSize(int width, int height)
m_addrWidth = QString::number(m_data->GetEnd(), 16).size();
if (m_addrWidth < 8)
m_addrWidth = 8;
- int cols = ((width - 4) / m_render.getFontWidth()) - (m_addrWidth + 2);
+ int cols = ((width - 4) / m_render.getFontWidth()) - ((int)m_addrWidth + 2);
if (cols < 1)
cols = 1;
if ((size_t)cols != m_cols)
@@ -553,7 +553,7 @@ void ByteView::updateCaret()
if (((m_prevCursorAddr >= m_lines[i].address) && (m_prevCursorAddr <= (m_lines[i].address + m_lines[i].length))) ||
((m_cursorAddr >= m_lines[i].address) && (m_cursorAddr <= (m_lines[i].address + m_lines[i].length))))
{
- viewport()->update(0, (i - m_topLine) * m_render.getFontHeight(),
+ viewport()->update(0, (int)(i - m_topLine) * m_render.getFontHeight(),
viewport()->size().width(), m_render.getFontHeight() + 3);
}
}