Skip to content

Commit

Permalink
Fixlet
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuraski committed Jun 16, 2005
1 parent 7c26455 commit ff06fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_language_scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ ZEND_API int zend_get_scanned_file_offset(TSRMLS_D)
{
if (yyin) {
int offset_in_buffer = (yy_c_buf_p - (YY_CURRENT_BUFFER)->yy_ch_buf);
int read_bytes = (YY_CURRENT_BUFFER)->yy_n_chars;
int read_bytes = SCNG(yy_n_chars);
int offset_from_the_end = read_bytes - offset_in_buffer;

return zend_stream_ftell(yyin TSRMLS_CC) - offset_from_the_end;
Expand Down

0 comments on commit ff06fb7

Please sign in to comment.