diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/image/GIFFileFormat.d @ 113:fb3aa8075988

D2 support for the linux port.
author Jacob Carlborg <doob@me.com>
date Wed, 06 Apr 2011 21:57:23 +0200
parents c01d033c633a
children 536e43f63c81
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/image/GIFFileFormat.d	Wed Mar 16 21:53:53 2011 +0900
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/image/GIFFileFormat.d	Wed Apr 06 21:57:23 2011 +0200
@@ -127,7 +127,7 @@
                 if (id > 0) {
                     /* We read the terminator earlier. */
                     byte[1] arr;
-                    arr[0] = id;
+                    arr[0] = cast(byte) id;
                     inputStream.unread( arr );
                 }
             } catch (IOException e) {
@@ -172,7 +172,7 @@
         if (id is GIF_IMAGE_BLOCK_ID || id is GIF_TRAILER_ID) {
             try {
                 byte[1] arr;
-                arr[0] = id;
+                arr[0] = cast(byte) id;
                 inputStream.unread(arr);
             } catch (IOException e) {
                 SWT.error(SWT.ERROR_IO, e);