From 04178f8b957267e0079fc91cc67653311e405665 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 10 Sep 2015 18:35:24 +0800 Subject: [PATCH] JSDOC/TextStream.vala --- JSDOC/TextStream.vala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/JSDOC/TextStream.vala b/JSDOC/TextStream.vala index ff5f98c..229b2ca 100644 --- a/JSDOC/TextStream.vala +++ b/JSDOC/TextStream.vala @@ -29,12 +29,10 @@ namespace JSDOC { this.cursor = 0; } - public char look(int n = 0, out bool eof) + public char look(int n = 0) { - eof = false; - + if (this.cursor+n < 0 || this.cursor+n >= this.text.length) { - eof = true; return '\0'; } return this.text[this.cursor+n]; -- 2.39.2