fix mistype => should be while (shx.is_good() && pos <= file_length - 4)
This commit is contained in:
parent
aee0149a1a
commit
ec074752cc
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ int main (int argc,char** argv)
|
||||||
mapnik::quad_tree<int> tree(extent, depth, ratio);
|
mapnik::quad_tree<int> tree(extent, depth, ratio);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
while (shx.is_good() && pos <= file_length + 4)
|
while (shx.is_good() && pos <= file_length - 4)
|
||||||
{
|
{
|
||||||
int offset = shx.read_xdr_integer();
|
int offset = shx.read_xdr_integer();
|
||||||
int content_length = shx.read_xdr_integer();
|
int content_length = shx.read_xdr_integer();
|
||||||
|
|
Loading…
Reference in a new issue