fix lazy_bdecode build

This commit is contained in:
Arvid Norberg 2013-12-26 18:43:48 +00:00
parent 3fb72b30b5
commit c9bfa1279e
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ namespace libtorrent
TORRENT_FAIL_BDECODE(e); TORRENT_FAIL_BDECODE(e);
if (start + len + 1 > end) if (start + len + 1 > end)
TORRENT_FAIL_BDECODE(errors::unexpected_eof); TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
++start; ++start;
if (start == end) TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof); if (start == end) TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
@ -200,7 +200,7 @@ namespace libtorrent
if (e) if (e)
TORRENT_FAIL_BDECODE(e); TORRENT_FAIL_BDECODE(e);
if (start + len + 1 > end) if (start + len + 1 > end)
TORRENT_FAIL_BDECODE(errors::unexpected_eof); TORRENT_FAIL_BDECODE(bdecode_errors::unexpected_eof);
++start; ++start;
top->construct_string(start, int(len)); top->construct_string(start, int(len));
stack.pop_back(); stack.pop_back();