From 15503a142cd2e507b8be87e4ae5aaddf4af2719f Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 26 Mar 2016 09:51:14 +0100 Subject: bmp: Fix typo in bitmask comparison. --- source/fitz/load-bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/load-bmp.c') diff --git a/source/fitz/load-bmp.c b/source/fitz/load-bmp.c index 4a5887e0..0f3b5d33 100644 --- a/source/fitz/load-bmp.c +++ b/source/fitz/load-bmp.c @@ -692,7 +692,7 @@ bmp_read_image(fz_context *ctx, struct info *info, unsigned char *p, int total, info->bitcount, info->compression); if (info->rbits > 0 && info->rbits != 5 && info->rbits != 8) fz_throw(ctx, FZ_ERROR_GENERIC, "unsupported %d bit red mask in bmp image", info->rbits); - if (info->gbits > 0 && info->gbits != 5 && info->gbits != 6 && info->rbits != 8) + if (info->gbits > 0 && info->gbits != 5 && info->gbits != 6 && info->gbits != 8) fz_throw(ctx, FZ_ERROR_GENERIC, "unsupported %d bit green mask in bmp image", info->gbits); if (info->bbits > 0 && info->bbits != 5 && info->rbits != 8) fz_throw(ctx, FZ_ERROR_GENERIC, "unsupported %d bit blue mask in bmp image", info->bbits); -- cgit v1.2.3