Skip to content

Commit

Permalink
Fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 22, 2015
1 parent 64842a0 commit b49cbc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lisp/lexer.cpp
Expand Up @@ -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();
}

Expand All @@ -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;
Expand Down

0 comments on commit b49cbc5

Please sign in to comment.