diff --git a/MagickCore/colorspace.c b/MagickCore/colorspace.c
index c2d43eb..ffb2504 100644
--- a/MagickCore/colorspace.c
+++ b/MagickCore/colorspace.c
@@ -1064,12 +1064,12 @@
         PixelInfo
           pixel;
 
-        register ssize_t
-          x;
-
         register Quantum
           *restrict q;
 
+        register ssize_t
+          x;
+
         register unsigned int
           blue,
           green,