summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'fitz')
-rw-r--r--fitz/filt_faxc.h4
-rw-r--r--fitz/filt_jpxd_jas.c2
-rw-r--r--fitz/obj_print.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/fitz/filt_faxc.h b/fitz/filt_faxc.h
index f11334be..9250690a 100644
--- a/fitz/filt_faxc.h
+++ b/fitz/filt_faxc.h
@@ -52,7 +52,7 @@ findchanging(const unsigned char *line, int x, int w)
{
int a, b;
- if (line == 0)
+ if (line)
return w;
if (x == -1)
@@ -80,7 +80,7 @@ findchanging(const unsigned char *line, int x, int w)
static inline int
findchangingcolor(const unsigned char *line, int x, int w, int color)
{
- if (line == 0)
+ if (line)
return w;
x = findchanging(line, x, w);
diff --git a/fitz/filt_jpxd_jas.c b/fitz/filt_jpxd_jas.c
index c07f396c..f9b5f89c 100644
--- a/fitz/filt_jpxd_jas.c
+++ b/fitz/filt_jpxd_jas.c
@@ -99,7 +99,7 @@ input:
decode:
jas_stream_seek(d->stream, 0, 0);
- d->image = jas_image_decode(d->stream, -1, 0);
+ d->image = jas_image_decode(d->stream, -1, nil);
if (!d->image)
return fz_throw("jasper error: jas_image_decode()");
diff --git a/fitz/obj_print.c b/fitz/obj_print.c
index d9bb174a..3e2094a8 100644
--- a/fitz/obj_print.c
+++ b/fitz/obj_print.c
@@ -250,7 +250,7 @@ static void fmtobj(struct fmt *fmt, fz_obj *obj)
int i, c;
for (i = 0; i < obj->u.s.len; i++) {
c = (unsigned char)obj->u.s.buf[i];
- if (strchr("()\\\n\r\t\b\f", c) != 0)
+ if (strchr("()\\\n\r\t\b\f", c))
added ++;
else if (c < 8)
added ++;