changeset 1996:289a8ca4855b

Mac: Clang didn't like the loss of precision without a cast from the previous change.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 16 Oct 2019 21:47:10 +0000
parents e0669accc85b
children 0e354f2edb16
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed Oct 16 20:56:44 2019 +0000
+++ b/mac/dw.m	Wed Oct 16 21:47:10 2019 +0000
@@ -635,7 +635,7 @@
                 DWIMP ipmb = [[NSEvent class] respondsToSelector:spmb] ? (DWIMP)[[NSEvent class] methodForSelector:spmb] : 0;
                 NSUInteger buttonmask = ipmb ? (NSUInteger)ipmb([NSEvent class], spmb) : (1 << [event buttonNumber]);
 
-                return motionfunc(object, (int)p.x, (int)p.y, buttonmask, handler->data);
+                return motionfunc(object, (int)p.x, (int)p.y, (int)buttonmask, handler->data);
             }
             /* Window close event */
             case 6: