We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent accbf29 commit 938fcbdCopy full SHA for 938fcbd
1 file changed
library/SDLConsole_impl.cpp
@@ -2626,14 +2626,14 @@ class OutputPane : public Widget {
2626
step = -1;
2627
break;
2628
case ScrollAction::page_up:
2629
- step = rows();
+ step = (int)rows();
2630
2631
case ScrollAction::page_down:
2632
- step = -rows();
+ step = (int)-rows();
2633
2634
}
2635
2636
- int max = std::max(std::size_t(0), (num_rows + prompt.entry.size()) - rows());
+ int max = (int)std::max(std::size_t(0), (num_rows + prompt.entry.size()) - rows());
2637
set_scroll_offset(std::clamp(scroll_offset + step, 0, max));
2638
2639
0 commit comments