Changeset 4537 for pjproject/trunk/pjlib/src/pj/fifobuf.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/fifobuf.c
r3553 r4537 48 48 49 49 if (fifobuf->uend >= fifobuf->ubegin) { 50 s1 = fifobuf->last - fifobuf->uend;51 s2 = fifobuf->ubegin - fifobuf->first;50 s1 = (unsigned)(fifobuf->last - fifobuf->uend); 51 s2 = (unsigned)(fifobuf->ubegin - fifobuf->first); 52 52 } else { 53 s1 = s2 = fifobuf->ubegin - fifobuf->uend;53 s1 = s2 = (unsigned)(fifobuf->ubegin - fifobuf->uend); 54 54 } 55 55 … … 73 73 /* try to allocate from the end part of the fifo */ 74 74 if (fifobuf->uend >= fifobuf->ubegin) { 75 available = fifobuf->last - fifobuf->uend;75 available = (unsigned)(fifobuf->last - fifobuf->uend); 76 76 if (available >= size+SZ) { 77 77 char *ptr = fifobuf->uend; … … 93 93 /* try to allocate from the start part of the fifo */ 94 94 start = (fifobuf->uend <= fifobuf->ubegin) ? fifobuf->uend : fifobuf->first; 95 available = fifobuf->ubegin - start;95 available = (unsigned)(fifobuf->ubegin - start); 96 96 if (available >= size+SZ) { 97 97 char *ptr = start;
Note: See TracChangeset
for help on using the changeset viewer.