415 |
{ |
{ |
416 |
FT_Error error = 0; |
FT_Error error = 0; |
417 |
|
|
418 |
if ( num_items > list->size ) |
if ( num_items > (int)list->size ) |
419 |
{ |
{ |
420 |
int oldsize = list->size; |
int oldsize = list->size; |
421 |
int newsize = oldsize + (oldsize >> 1) + 4; |
int newsize = oldsize + (oldsize >> 1) + 4; |
637 |
cursor = 0; |
cursor = 0; |
638 |
refill = 1; |
refill = 1; |
639 |
to_skip = NO_SKIP; |
to_skip = NO_SKIP; |
640 |
|
bytes = 0; /* make compiler happy */ |
641 |
|
|
642 |
for (;;) |
for (;;) |
643 |
{ |
{ |
644 |
if ( refill ) |
if ( refill ) |
645 |
{ |
{ |
646 |
bytes = (int) FT_Stream_TryRead( stream, buf + cursor, |
bytes = (int) FT_Stream_TryRead( stream, (FT_Byte*)buf + cursor, |
647 |
(FT_ULong)(buf_size - cursor) ); |
(FT_ULong)(buf_size - cursor) ); |
648 |
avail = cursor + bytes; |
avail = cursor + bytes; |
649 |
cursor = 0; |
cursor = 0; |