Mercurial > projects > dwt-mac
diff dwt/internal/image/PngTrnsChunk.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/PngTrnsChunk.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/internal/image/PngTrnsChunk.d Wed Aug 27 14:30:35 2008 +0200 @@ -40,11 +40,11 @@ bool valid; switch (header.getColorType()) { case PngIhdrChunk.COLOR_TYPE_RGB: - // Three 2-byte values (RGB) + // Three 2-byte values cast(RGB) valid = getLength() is 6; break; case PngIhdrChunk.COLOR_TYPE_PALETTE: - // Three 2-byte values (RGB) + // Three 2-byte values cast(RGB) valid = getLength() <= paletteChunk.getLength(); break; case PngIhdrChunk.COLOR_TYPE_GRAYSCALE: @@ -147,7 +147,7 @@ * alpha of 255. */ for (int j = i; j < alphas.length; j++) { - alphas[j] = (byte) 255; + alphas[j] = cast(byte) 255; } return alphas; }