Skip to content

Commit 938fcbd

Browse files
committed
fix windows build
1 parent accbf29 commit 938fcbd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

library/SDLConsole_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2626,14 +2626,14 @@ class OutputPane : public Widget {
26262626
step = -1;
26272627
break;
26282628
case ScrollAction::page_up:
2629-
step = rows();
2629+
step = (int)rows();
26302630
break;
26312631
case ScrollAction::page_down:
2632-
step = -rows();
2632+
step = (int)-rows();
26332633
break;
26342634
}
26352635

2636-
int max = std::max(std::size_t(0), (num_rows + prompt.entry.size()) - rows());
2636+
int max = (int)std::max(std::size_t(0), (num_rows + prompt.entry.size()) - rows());
26372637
set_scroll_offset(std::clamp(scroll_offset + step, 0, max));
26382638
}
26392639

0 commit comments

Comments
 (0)