Commit a2585599 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(l2g_append): Added cast to remove warning.

(l2g_expensive_set): Ditto.
(l2g_expensive_set): Ditto.
parent 7612e913
......@@ -698,7 +698,7 @@ l2g_append(Local_to_global *l2g,
point to it. */
if (is_dense(binfo))
{
if (lno - binfo->start >= L2G_BLOCKSIZE)
if (lno - binfo->start >= (Local_text_no)L2G_BLOCKSIZE)
{
/* The last block is a dense block, and this text does not
fit in it. Or is there anything we can do to make it fit? */
......@@ -833,7 +833,8 @@ l2g_expensive_set(Local_to_global *l2g,
else
{
ix = sparse_locate_value(binfo, lno);
if (ix < binfo->first_free && binfo->key_block[ix] == lno)
if (ix < (Local_text_no_iter)binfo->first_free
&& binfo->key_block[ix] == lno)
{
/* We found the value in this sparse block. */
assert(binfo->value_block[ix] != 0);
......@@ -898,7 +899,8 @@ l2g_expensive_set(Local_to_global *l2g,
}
assert(ix == 0 || binfo->key_block[ix-1] < lno);
assert(ix == binfo->first_free || binfo->key_block[ix+1] > lno);
assert(ix == (Local_text_no_iter)binfo->first_free
|| binfo->key_block[ix+1] > lno);
binfo->key_block[ix] = lno;
binfo->value_block[ix] = tno;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment