projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64842a0
)
Fix compiler errors
author
Tobias Markus
<tobbi@mozilla-uk.org>
Sun, 22 Feb 2015 17:21:50 +0000
(18:21 +0100)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Sun, 22 Feb 2015 17:31:57 +0000
(18:31 +0100)
src/lisp/lexer.cpp
patch
|
blob
|
history
diff --git
a/src/lisp/lexer.cpp
b/src/lisp/lexer.cpp
index
ef1925f
..
cd4ab64
100644
(file)
--- 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;