From: Tobias Markus Date: Sun, 22 Feb 2015 17:21:50 +0000 (+0100) Subject: Fix compiler errors X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b49cbc5f242edb7023153f8bae9ceb444a2460da;p=supertux.git Fix compiler errors --- diff --git a/src/lisp/lexer.cpp b/src/lisp/lexer.cpp index ef1925fba..cd4ab641c 100644 --- a/src/lisp/lexer.cpp +++ b/src/lisp/lexer.cpp @@ -34,8 +34,8 @@ Lexer::Lexer(std::istream& newstream) : token_length() { // trigger a refill of the buffer - bufpos = '\0'; - bufend = '\0'; + bufpos = NULL; + bufend = NULL; nextChar(); } @@ -46,7 +46,7 @@ Lexer::~Lexer() void Lexer::nextChar() { - if(bufpos >= bufend) { + if(bufpos >= bufend || (bufpos == NULL && bufend == NULL) /* Initial refill trigger */) { if(eof) { c = EOF; return;