diff --git a/coders/dds.c b/coders/dds.c
index dc7a796..0421b75 100644
--- a/coders/dds.c
+++ b/coders/dds.c
@@ -529,7 +529,7 @@
q = QueueAuthenticPixels(image, x, y, Min(4, dds_info->width - x),
Min(4, dds_info->height - y),exception);
- if (q == (const Quantum *) NULL)
+ if (q == (Quantum *) NULL)
return MagickFalse;
/* Read 8 bytes of data from the image */
@@ -703,7 +703,7 @@
q = QueueAuthenticPixels(image, x, y, Min(4, dds_info->width - x),
Min(4, dds_info->height - y),exception);
- if (q == (const Quantum *) NULL)
+ if (q == (Quantum *) NULL)
return MagickFalse;
/* Read alpha values (8 bytes) */