Skip to content

Commit

Permalink
Fix narrowing conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Jul 26, 2020
1 parent 741b7fe commit 26b3f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/tvision/views.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,13 @@ inline opstream& operator << ( opstream& os, TView* cl )
inline void TView::writeBuf( short x, short y, short w, short h,
const TDrawBuffer& b )
{
writeBuf( x, y, min(w, b.length() - x), h, b.data );
writeBuf( x, y, min(w, short(b.length() - x)), h, b.data );
}

inline void TView::writeLine( short x, short y, short w, short h,
const TDrawBuffer& b )
{
writeLine( x, y, min(w, b.length() - x), h, b.data );
writeLine( x, y, min(w, short(b.length() - x)), h, b.data );
}

#endif // Uses_TView
Expand Down

0 comments on commit 26b3f82

Please sign in to comment.