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

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children 5123b17c98ef
line wrap: on
line diff
--- a/dwt/internal/image/JPEGSegment.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/internal/image/JPEGSegment.d	Wed Aug 27 14:30:35 2008 +0200
@@ -34,8 +34,8 @@
     }
     
     public void setSegmentMarker(int marker) {
-        reference[0] = (byte)((marker & 0xFF00) >> 8);
-        reference[1] = (byte)(marker & 0xFF);
+        reference[0] = cast(byte)((marker & 0xFF00) >> 8);
+        reference[1] = cast(byte)(marker & 0xFF);
     }
     
     public int getSegmentLength() {
@@ -43,8 +43,8 @@
     }
     
     public void setSegmentLength(int length) {
-        reference[2] = (byte)((length & 0xFF00) >> 8);
-        reference[3] = (byte)(length & 0xFF);
+        reference[2] = cast(byte)((length & 0xFF00) >> 8);
+        reference[3] = cast(byte)(length & 0xFF);
     }
     
     public bool writeToStream(LEDataOutputStream byteStream) {