summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-07-01 12:31:42 +0200
committerTor Andersson <tor@ghostscript.com>2009-07-01 12:31:42 +0200
commit3ee1ec9d451dcd5acf517b6f03975bbee3bce3ed (patch)
tree4ad804ba026dc4f9725d50ce74b6cb29d143465d
parent7ed982f764d8bb23121f0138340365a7524919a7 (diff)
downloadmupdf-3ee1ec9d451dcd5acf517b6f03975bbee3bce3ed.tar.xz
Fix warning about signedness conversions.
-rw-r--r--apps/mozilla/moz_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c
index edbfe255..3be5723b 100644
--- a/apps/mozilla/moz_main.c
+++ b/apps/mozilla/moz_main.c
@@ -391,7 +391,7 @@ void pdfmoz_onmouse(pdfmoz_t *moz, int x, int y, int click)
static void drawimage(HDC hdc, pdfmoz_t *moz, fz_pixmap *image, int yofs)
{
int bmpstride = ((image->w * 3 + 3) / 4) * 4;
- char *bmpdata = fz_malloc(image->h * bmpstride);
+ unsigned char *bmpdata = fz_malloc(image->h * bmpstride);
int x, y;
if (!bmpdata)
@@ -399,8 +399,8 @@ static void drawimage(HDC hdc, pdfmoz_t *moz, fz_pixmap *image, int yofs)
for (y = 0; y < image->h; y++)
{
- char *p = bmpdata + y * bmpstride;
- char *s = image->samples + y * image->w * 4;
+ unsigned char *p = bmpdata + y * bmpstride;
+ unsigned char *s = image->samples + y * image->w * 4;
for (x = 0; x < image->w; x++)
{
p[x * 3 + 0] = s[x * 4 + 3];