Skip to content

Commit

Permalink
Merge pull request thestinger#352 from jelly/resolve_gcc_warning
Browse files Browse the repository at this point in the history
Resolve GCC 6.1 warning
  • Loading branch information
thestinger committed May 5, 2016
2 parents 530c354 + dedf7b3 commit caa784a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion termite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static void update_scroll(VteTerminal *vte) {
long cursor_row;
vte_terminal_get_cursor_position(vte, nullptr, &cursor_row);

if (cursor_row < scroll_row) {
if ( (double)cursor_row < scroll_row) {
gtk_adjustment_set_value(adjust, (double)cursor_row);
} else if (cursor_row - n_rows >= (long)scroll_row) {
gtk_adjustment_set_value(adjust, (double)(cursor_row - n_rows + 1));
Expand Down

0 comments on commit caa784a

Please sign in to comment.