From 24db640d0c7964f2d128f3049a6652d8a730656c Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 7 Aug 2015 10:59:34 -0400 Subject: [PATCH] 64 bit oops --- terminal.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal.d b/terminal.d index ea3ac91..6eaa387 100644 --- a/terminal.d +++ b/terminal.d @@ -3146,7 +3146,7 @@ struct ScrollbackBuffer { start drawing */ int remaining = height + scrollbackPosition; - int start = lines.length; + int start = cast(int) lines.length; int howMany = 0; // we'll work backwards to figure out how much will fit... @@ -3225,7 +3225,7 @@ struct ScrollbackBuffer { void scrollUp(int lines = 1) { scrollbackPosition += lines; if(scrollbackPosition >= this.lines.length) - scrollbackPosition = this.lines.length - 1; + scrollbackPosition = cast(int) this.lines.length - 1; } void scrollDown(int lines = 1) {