mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed L4 warnings.
This commit is contained in:
4
3rdparty/stb_image/stb_image.c
vendored
4
3rdparty/stb_image/stb_image.c
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user