diff options
Diffstat (limited to 'test/ascii_tag.c')
-rw-r--r-- | test/ascii_tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ascii_tag.c b/test/ascii_tag.c index bf812126..fc37e785 100644 --- a/test/ascii_tag.c +++ b/test/ascii_tag.c @@ -1,4 +1,4 @@ -/* $Id: ascii_tag.c,v 1.5.2.1 2010-06-08 18:50:43 bfriesen Exp $ */ +/* $Id: ascii_tag.c,v 1.5.2.2 2013-12-17 14:45:12 bfriesen Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> @@ -125,7 +125,7 @@ main(int argc, char **argv) } /* Write dummy pixel data. */ - if (!TIFFWriteScanline(tif, buf, 0, 0) < 0) { + if (TIFFWriteScanline(tif, buf, 0, 0) == -1) { fprintf (stderr, "Can't write image data.\n"); goto failure; } |