summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vteseq.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vteseq.cc b/src/vteseq.cc
index b2a8d8ee..0a45c9b4 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -8946,8 +8946,8 @@ Terminal::XTERM_WM(vte::parser::Sequence const& seq)
break;
case VTE_XTERM_WM_GET_WINDOW_SIZE_PIXELS: {
- int width = m_row_count * m_cell_height_unscaled;
- int height = m_column_count * m_cell_width_unscaled;
+ auto const height = int(m_row_count * m_cell_height_unscaled);
+ auto const width = int(m_column_count * m_cell_width_unscaled);
reply(seq, VTE_REPLY_XTERM_WM, {4, height, width});
break;
}