diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.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/custom/DefaultContent.d	Wed Mar 16 21:53:53 2011 +0900
+++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/DefaultContent.d	Wed Apr 06 21:57:23 2011 +0200
@@ -910,7 +910,7 @@
         return offset;
     }
     if (!gapExists() || (offset < gapStart)){
-        while( textStore[offset] & 0xC0 is 0x80 ){
+        while( (textStore[offset] & 0xC0) is 0x80 ){
             offset--;
         }
         return offset;
@@ -919,7 +919,7 @@
     if( offset+gapLength >= textStore.length ){
         return offset;
     }
-    while( textStore[offset+gapLength] & 0xC0 is 0x80 ){
+    while( (textStore[offset+gapLength] & 0xC0) is 0x80 ){
         offset--;
     }
     return offset;