# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1571259404 0 # Node ID e0669accc85bffd1ff139a6df99a5bb1aec8f3d1 # Parent 4c53c8367a121fa106f2b918255c6bf046ddac80 Mac: Fix typecast to int of different size with gcc for 32bit. diff -r 4c53c8367a12 -r e0669accc85b mac/dw.m --- a/mac/dw.m Sat Sep 21 15:41:57 2019 +0000 +++ b/mac/dw.m Wed Oct 16 20:56:44 2019 +0000 @@ -633,7 +633,7 @@ NSPoint p = [view convertPoint:[event locationInWindow] toView:object]; SEL spmb = NSSelectorFromString(@"pressedMouseButtons"); DWIMP ipmb = [[NSEvent class] respondsToSelector:spmb] ? (DWIMP)[[NSEvent class] methodForSelector:spmb] : 0; - int buttonmask = ipmb ? (int)ipmb([NSEvent class], spmb) : (1 << [event buttonNumber]); + NSUInteger buttonmask = ipmb ? (NSUInteger)ipmb([NSEvent class], spmb) : (1 << [event buttonNumber]); return motionfunc(object, (int)p.x, (int)p.y, buttonmask, handler->data); }