diff dwt/internal/image/PngDecodingDataStream.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents b903c16b6f48
children 5123b17c98ef
line wrap: on
line diff
--- a/dwt/internal/image/PngDecodingDataStream.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/internal/image/PngDecodingDataStream.d	Wed Aug 27 14:30:35 2008 +0200
@@ -70,7 +70,7 @@
 }
 
 byte getNextIdatByte() { 
-    byte nextByte = (byte)stream.read();
+    byte nextByte = cast(byte)stream.read();
     nextBitIndex = MAX_BIT + 1;
     return nextByte;
 }
@@ -94,7 +94,7 @@
     for (int i = 0; i < len; i++) {
         int b = read();
         if (b is -1) return i;
-        buffer[off + i] = (byte)b;
+        buffer[off + i] = cast(byte)b;
     }
     return len;
 }