Fixed warnings for 64-bit build on Windows.
diff --git a/MagickCore/cache.c b/MagickCore/cache.c
index 58bbb2f..1d30c08 100644
--- a/MagickCore/cache.c
+++ b/MagickCore/cache.c
@@ -4234,7 +4234,7 @@
   if (nexus_info->authentic_pixel_cache != MagickFalse)
     return(MagickTrue);
   offset=(MagickOffsetType) nexus_info->region.y*cache_info->columns;
-  if ((offset/cache_info->columns) != nexus_info->region.y)
+  if ((offset/(MagickOffsetType) cache_info->columns) != nexus_info->region.y)
     return(MagickFalse);
   offset+=nexus_info->region.x;
   number_channels=cache_info->number_channels;
diff --git a/coders/dib.c b/coders/dib.c
index 13735f7..39892a3 100644
--- a/coders/dib.c
+++ b/coders/dib.c
@@ -538,7 +538,7 @@
       (dib_info.bits_per_pixel != 24) && (dib_info.bits_per_pixel != 32))
     ThrowReaderException(CorruptImageError,"UnrecognizedBitsPerPixel");
   if (dib_info.bits_per_pixel < 16 &&
-      dib_info.number_colors > (1UL << dib_info.bits_per_pixel))
+      dib_info.number_colors > (size_t) (1UL << dib_info.bits_per_pixel))
     ThrowReaderException(CorruptImageError,"UnrecognizedNumberOfColors");
   if ((dib_info.compression == 1) && (dib_info.bits_per_pixel != 8))
     ThrowReaderException(CorruptImageError,"UnrecognizedBitsPerPixel");
diff --git a/coders/icon.c b/coders/icon.c
index fa3f6e6..ed83b18 100644
--- a/coders/icon.c
+++ b/coders/icon.c
@@ -576,7 +576,7 @@
               for (x=0; x < (ssize_t) image->columns; x++)
               {
                 byte=(size_t) ReadBlobByte(image);
-                SetPixelIndex(image,byte,q);
+                SetPixelIndex(image,(Quantum) byte,q);
                 q+=GetPixelChannels(image);
               }
               for (x=0; x < (ssize_t) scanline_pad; x++)
@@ -607,7 +607,7 @@
               {
                 byte=(size_t) ReadBlobByte(image);
                 byte|=(size_t) (ReadBlobByte(image) << 8);
-                SetPixelIndex(image,byte,q);
+                SetPixelIndex(image,(Quantum) byte,q);
                 q+=GetPixelChannels(image);
               }
               for (x=0; x < (ssize_t) scanline_pad; x++)
diff --git a/coders/jp2.c b/coders/jp2.c
index 8629497..fc02325 100644
--- a/coders/jp2.c
+++ b/coders/jp2.c
@@ -803,8 +803,8 @@
   */
   opj_set_default_encoder_parameters(&parameters);
   for (i=1; i < 6; i++)
-    if (((1 << (i+2)) > (ssize_t) image->columns) &&
-        ((1 << (i+2)) > (ssize_t) image->rows))
+    if (((size_t) (1UL << (i+2)) > image->columns) &&
+        ((size_t) (1UL << (i+2)) > image->rows))
       break;
   parameters.numresolution=i;
   option=GetImageOption(image_info,"jp2:number-resolutions");
diff --git a/coders/sgi.c b/coders/sgi.c
index 100ce7c..84bcadb 100644
--- a/coders/sgi.c
+++ b/coders/sgi.c
@@ -639,7 +639,7 @@
               {
                 quantum=(*p << 8);
                 quantum|=(*(p+1));
-                SetPixelIndex(image,quantum,q);
+                SetPixelIndex(image,(Quantum) quantum,q);
                 p+=8;
                 q+=GetPixelChannels(image);
               }
diff --git a/coders/stegano.c b/coders/stegano.c
index 8c31b88..a8c35b1 100644
--- a/coders/stegano.c
+++ b/coders/stegano.c
@@ -91,7 +91,7 @@
   ExceptionInfo *exception)
 {
 #define GetBit(alpha,i) (((size_t) (alpha) >> (size_t) (i)) & 0x01)
-#define SetBit(i,set) SetPixelIndex(image,((set) != 0 ? \
+#define SetBit(i,set) SetPixelIndex(image,(Quantum) ((set) != 0 ? \
   (size_t) GetPixelIndex(image,q) | (one << (size_t) (i)) : \
   (size_t) GetPixelIndex(image,q) & ~(one << (size_t) (i))),q)
 
diff --git a/coders/tiff.c b/coders/tiff.c
index 3aa112c..022e10d 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -2967,7 +2967,7 @@
         pages;
       
       page=(uint16) image->scene;
-      pages=GetImageListLength(image);
+      pages=(uint16) GetImageListLength(image);
       if ((image_info->adjoin != MagickFalse) && (pages > 1))
         (void) TIFFSetField(tiff,TIFFTAG_SUBFILETYPE,FILETYPE_PAGE);
       (void) TIFFSetField(tiff,TIFFTAG_PAGENUMBER,page,pages);
diff --git a/coders/uil.c b/coders/uil.c
index 85a7803..06f00b9 100644
--- a/coders/uil.c
+++ b/coders/uil.c
@@ -271,7 +271,7 @@
             for (x=0; x < (ssize_t) image->columns; x++)
             {
               if (matte_image[i] != 0)
-                SetPixelIndex(image,image->colors,q);
+                SetPixelIndex(image,(Quantum) image->colors,q);
               q+=GetPixelChannels(image);
             }
           }
diff --git a/coders/viff.c b/coders/viff.c
index 0904294..1817da0 100644
--- a/coders/viff.c
+++ b/coders/viff.c
@@ -618,7 +618,7 @@
               SetPixelGreen(image,quantum == 0 ? 0 : QuantumRange,q);
               SetPixelBlue(image,quantum == 0 ? 0 : QuantumRange,q);
               if (image->storage_class == PseudoClass)
-                SetPixelIndex(image,quantum,q);
+                SetPixelIndex(image,(Quantum) quantum,q);
               q+=GetPixelChannels(image);
             }
             p++;
@@ -632,7 +632,7 @@
                 SetPixelGreen(image,quantum == 0 ? 0 : QuantumRange,q);
                 SetPixelBlue(image,quantum == 0 ? 0 : QuantumRange,q);
                 if (image->storage_class == PseudoClass)
-                  SetPixelIndex(image,quantum,q);
+                  SetPixelIndex(image,(Quantum) quantum,q);
                 q+=GetPixelChannels(image);
               }
               p++;