diff --git a/coders/tiff.c b/coders/tiff.c
index ed8961d..4cdcd27 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -2428,7 +2428,8 @@
     i;
 
   size_t
-    length;
+    length,
+    lsb_first;
 
   TIFF
     *tiff;
@@ -2452,9 +2453,6 @@
   unsigned char
     *pixels;
 
-  size_t
-    lsb_first;
-
   /*
     Open TIFF file.
   */