diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-10 18:01:01 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-10 18:01:49 +0100 |
| commit | 225cd164c8307d39d6e7f4881253ef1de66469b6 (patch) | |
| tree | 6502549db6a43989e77ac77b559ae8ff53c2114b /src/compiler.rs | |
| parent | f5a82d852abdb3b6b3bd342572ac5adee6affb7b (diff) | |
| download | sylt-225cd164c8307d39d6e7f4881253ef1de66469b6.tar.gz | |
change debug print output
Diffstat (limited to 'src/compiler.rs')
| -rw-r--r-- | src/compiler.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 9ab868f..e83c269 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -596,8 +596,7 @@ impl Compiler { /// The line of the current token. fn line(&self) -> usize { if self.section().tokens.len() == 0 { - // unreachable!("An error occured without a section."); - 666666 + 0 } else { self.section().tokens[std::cmp::min(self.current_token, self.section().tokens.len() - 1)].1 } |
