summaryrefslogtreecommitdiff
path: root/libtiff/tif_luv.c
diff options
context:
space:
mode:
authordron <dron>2005-12-09 12:58:08 +0000
committerdron <dron>2005-12-09 12:58:08 +0000
commit14b119ccdbd76c02d9186659af3a9f39490b0782 (patch)
tree89a8a0ab8a1167fc52b4680177e8970b74c39301 /libtiff/tif_luv.c
parent226354701fc82edd461e593126315c032434d96a (diff)
downloadlibtiff-14b119ccdbd76c02d9186659af3a9f39490b0782.tar.gz
Added TIFFArraySize macro.
Diffstat (limited to 'libtiff/tif_luv.c')
-rw-r--r--libtiff/tif_luv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtiff/tif_luv.c b/libtiff/tif_luv.c
index cdaffbb5..376174cf 100644
--- a/libtiff/tif_luv.c
+++ b/libtiff/tif_luv.c
@@ -1,4 +1,4 @@
-/* $Id: tif_luv.c,v 1.13 2004-10-12 18:50:48 dron Exp $ */
+/* $Id: tif_luv.c,v 1.14 2005-12-09 12:58:08 dron Exp $ */
/*
* Copyright (c) 1997 Greg Ward Larson
@@ -173,7 +173,6 @@ struct logLuvState {
#define DecoderState(tif) ((LogLuvState*) (tif)->tif_data)
#define EncoderState(tif) ((LogLuvState*) (tif)->tif_data)
-#define N(a) (sizeof(a)/sizeof(a[0]))
#define SGILOGDATAFMT_UNKNOWN -1
#define MINRUN 4 /* minimum run length */
@@ -1584,7 +1583,8 @@ TIFFInitSGILog(TIFF* tif, int scheme)
tif->tif_cleanup = LogLuvCleanup;
/* override SetField so we can handle our private pseudo-tag */
- _TIFFMergeFieldInfo(tif, LogLuvFieldInfo, N(LogLuvFieldInfo));
+ _TIFFMergeFieldInfo(tif, LogLuvFieldInfo,
+ TIFFArraySize(LogLuvFieldInfo));
sp->vgetparent = tif->tif_tagmethods.vgetfield;
tif->tif_tagmethods.vgetfield = LogLuvVGetField; /* hook for codec tags */
sp->vsetparent = tif->tif_tagmethods.vsetfield;