64 bit oops

This commit is contained in:
Adam D. Ruppe 2015-08-07 10:59:34 -04:00
parent c0bc728df0
commit 24db640d0c
1 changed files with 2 additions and 2 deletions

View File

@ -3146,7 +3146,7 @@ struct ScrollbackBuffer {
start drawing */ start drawing */
int remaining = height + scrollbackPosition; int remaining = height + scrollbackPosition;
int start = lines.length; int start = cast(int) lines.length;
int howMany = 0; int howMany = 0;
// we'll work backwards to figure out how much will fit... // we'll work backwards to figure out how much will fit...
@ -3225,7 +3225,7 @@ struct ScrollbackBuffer {
void scrollUp(int lines = 1) { void scrollUp(int lines = 1) {
scrollbackPosition += lines; scrollbackPosition += lines;
if(scrollbackPosition >= this.lines.length) if(scrollbackPosition >= this.lines.length)
scrollbackPosition = this.lines.length - 1; scrollbackPosition = cast(int) this.lines.length - 1;
} }
void scrollDown(int lines = 1) { void scrollDown(int lines = 1) {