From b28899fe3792f7cef535d49f0db5ab8a759b5db2 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 15 Jun 2021 20:35:43 -0700 Subject: . Support newlines. Looks like we pasted the input from the browser window during the pairing session. --- linux/advent2017/1a.mu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/advent2017/1a.mu b/linux/advent2017/1a.mu index 39bb1ff8..e2541441 100644 --- a/linux/advent2017/1a.mu +++ b/linux/advent2017/1a.mu @@ -15,7 +15,9 @@ fn main -> _/ebx: int { break-if-= var next_digit/eax: int <- read_digit input_stream_addr - var next_digit/eax: int <- copy next_digit + # hacky newline check + compare next_digit, 0 + break-if-< { compare this_digit, next_digit -- cgit 1.4.1-2-gfad0