Skip to content

Commit a2fb8ea

Browse files
committed
Added explicit typecast to height calculation.
1 parent 5db91d8 commit a2fb8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6055,7 +6055,7 @@ void CMUSHclientDoc::SendWindowSizes (const int iNewWidth)
60556055

60566056
pmyView->GetTextRect (&r);
60576057

6058-
WORD height = (r.bottom - r.top - m_iPixelOffset) / m_FontHeight;
6058+
WORD height = (WORD) ((r.bottom - r.top - m_iPixelOffset) / m_FontHeight);
60596059

60606060
// now tell them our size
60616061
unsigned char p [] = { IAC, SB, TELOPT_NAWS,

0 commit comments

Comments
 (0)