Skip to content

Commit

Permalink
Remove compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
coslyk committed Sep 1, 2020
1 parent 8f6bfb0 commit 08b878a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AssBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ void AssBuilder::exportAss(std::ostream& output)
int TopROW = -1;
int BottomROW = -1;

int line = (1.0 - m_reservedArea) * m_height / m_fontSize;
int line = static_cast<int>((1.0 - m_reservedArea) * m_height / m_fontSize);

std::vector<double> rows_dismiss_time(line, 0); // The time of scroll comment dismiss
std::vector<double> rows_visible_time(line, 0); // The time of last char visible on screen
Expand Down

0 comments on commit 08b878a

Please sign in to comment.