diff --git a/coders/sun.c b/coders/sun.c
index 40f0a8a..0479a01 100644
--- a/coders/sun.c
+++ b/coders/sun.c
@@ -253,6 +253,7 @@
     *p;
 
   size_t
+    bytes_per_line,
     length;
 
   ssize_t
@@ -266,9 +267,6 @@
     *sun_data,
     *sun_pixels;
 
-  unsigned int
-    bytes_per_line;
-
   /*
     Open image file.
   */