Skip to content

Commit affb530

Browse files
committed
Fix size-calculation
1 parent 53bb22c commit affb530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jlex.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ protected function yy_advance() {
109109
$data = fread($this->yy_reader, 8192);
110110
if ($data === false || !strlen($data)) return $this->YY_EOF;
111111
$this->yy_buffer .= $data;
112-
$this->yy_buffer_read .= strlen($data);
112+
$this->yy_buffer_read += strlen($data);
113113
}
114114

115115
while ($this->yy_buffer_index >= $this->yy_buffer_read) {
116116
$data = fread($this->yy_reader, 8192);
117117
if ($data === false || !strlen($data)) return $this->YY_EOF;
118118
$this->yy_buffer .= $data;
119-
$this->yy_buffer_read .= strlen($data);
119+
$this->yy_buffer_read += strlen($data);
120120
}
121121
return ord($this->yy_buffer[$this->yy_buffer_index++]);
122122
}

0 commit comments

Comments
 (0)