Type data pointer variables as uint8_t.

This commit is contained in:
Justin Maggard
2014-04-25 14:30:38 -07:00
parent 381c4805e6
commit be5f4a50eb
8 changed files with 13 additions and 16 deletions

View File

@@ -424,7 +424,7 @@ image_new(int32_t width, int32_t height)
}
image_s *
image_new_from_jpeg(const char * path, int is_file, const char * buf, int size, int scale, int rotate)
image_new_from_jpeg(const char *path, int is_file, const uint8_t *buf, int size, int scale, int rotate)
{
image_s *vimage;
FILE *file = NULL;
@@ -447,7 +447,7 @@ image_new_from_jpeg(const char * path, int is_file, const char * buf, int size,
}
else
{
jpeg_memory_src(&cinfo, (const unsigned char *)buf, size);
jpeg_memory_src(&cinfo, buf, size);
}
if( setjmp(setjmp_buffer) )
{