diff doodle/tk/events.d @ 126:89016abde9fe

Keep it building... (dmd 2.055)
author David Bryant <bagnose@gmail.com>
date Fri, 09 Sep 2011 17:17:06 +0930
parents 7abaf5c3959f
children bc5baa585b32
line wrap: on
line diff
--- a/doodle/tk/events.d	Tue Jun 07 12:40:58 2011 +0930
+++ b/doodle/tk/events.d	Fri Sep 09 17:17:06 2011 +0930
@@ -81,7 +81,7 @@
         }
     }
 
-    bool isSet(in Modifier m) const { return _bits & (1 << m); }
+    bool isSet(in Modifier m) const { return cast(bool)(_bits & (1 << m)); }
     bool isUnset(in Modifier m) const { return !isSet(m); }
 
     private immutable ushort _bits;