git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db72107
)
c++ compile fix
author
kramm
<kramm>
Wed, 12 Nov 2008 10:38:17 +0000
(10:38 +0000)
committer
kramm
<kramm>
Wed, 12 Nov 2008 10:38:17 +0000
(10:38 +0000)
lib/jpeg.c
patch
|
blob
|
history
diff --git
a/lib/jpeg.c
b/lib/jpeg.c
index
b0059b8
..
66882b0
100644
(file)
--- a/
lib/jpeg.c
+++ b/
lib/jpeg.c
@@
-313,7
+313,7
@@
int jpeg_load(const char*filename, unsigned char**dest, int*_width, int*_height)
int width = *_width = cinfo.output_width;
int height = *_height = cinfo.output_height;
- *dest = malloc(width*height*4);
+ *dest = (unsigned char*)malloc(width*height*4);
int y;
for (y=0;y<height;y++) {