Merge pull request #352 from jelly/resolve_gcc_warning
Resolve GCC 6.1 warning
This commit is contained in:
commit
caa784a26c
|
@ -509,7 +509,7 @@ static void update_scroll(VteTerminal *vte) {
|
||||||
long cursor_row;
|
long cursor_row;
|
||||||
vte_terminal_get_cursor_position(vte, nullptr, &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);
|
gtk_adjustment_set_value(adjust, (double)cursor_row);
|
||||||
} else if (cursor_row - n_rows >= (long)scroll_row) {
|
} else if (cursor_row - n_rows >= (long)scroll_row) {
|
||||||
gtk_adjustment_set_value(adjust, (double)(cursor_row - n_rows + 1));
|
gtk_adjustment_set_value(adjust, (double)(cursor_row - n_rows + 1));
|
||||||
|
|
Loading…
Reference in New Issue