Fixed L4 warnings.

This commit is contained in:
bkaradzic
2013-03-25 21:13:54 -07:00
parent 07dc7b2c5f
commit 6582276e3e
17 changed files with 25 additions and 25 deletions

View File

@@ -757,7 +757,7 @@ stbi_inline static uint8 get8u(stbi *s)
static void skip(stbi *s, int n)
{
if (s->io.read) {
int blen = s->img_buffer_end - s->img_buffer;
int blen = (int)(s->img_buffer_end - s->img_buffer);
if (blen < n) {
s->img_buffer = s->img_buffer_end;
(s->io.skip)(s->io_user_data, n - blen);
@@ -770,7 +770,7 @@ static void skip(stbi *s, int n)
static int getn(stbi *s, stbi_uc *buffer, int n)
{
if (s->io.read) {
int blen = s->img_buffer_end - s->img_buffer;
int blen = (int)(s->img_buffer_end - s->img_buffer);
if (blen < n) {
int res, count;