diff --git a/MagickCore/cipher.c b/MagickCore/cipher.c
index 2fadb70..e26b4aa 100644
--- a/MagickCore/cipher.c
+++ b/MagickCore/cipher.c
@@ -653,7 +653,7 @@
image->filename);
}
quantum_type=GetQuantumType(image,exception);
- pixels=GetQuantumPixels(quantum_info);
+ pixels=(unsigned char *) GetQuantumPixels(quantum_info);
image_view=AcquireAuthenticCacheView(image,exception);
for (y=0; y < (ssize_t) image->rows; y++)
{
@@ -873,7 +873,7 @@
image->filename);
}
quantum_type=GetQuantumType(image,exception);
- pixels=GetQuantumPixels(quantum_info);
+ pixels=(unsigned char *) GetQuantumPixels(quantum_info);
image_view=AcquireAuthenticCacheView(image,exception);
for (y=0; y < (ssize_t) image->rows; y++)
{