diff mac/dw.m @ 2132:42f8ad7a89e8

Added DW_POINTER_TO_(U)LONGLONG and DW_(U)LONGLONG_TO_POINTER macros. This allows casting with intermediate (u)intptr_t cast to avoid compiler warnings on different systems. Use these macros where necessary in the code. Might need to check the compiler supports LONG LONG... since some compilers we support might not, like old versions of VisualAge C and Watcom.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 04 Jul 2020 17:51:46 +0000
parents fc29c4c2d386
children 79e9c8080ad9
line wrap: on
line diff
--- a/mac/dw.m	Tue Jun 30 20:10:23 2020 +0000
+++ b/mac/dw.m	Sat Jul 04 17:51:46 2020 +0000
@@ -10900,7 +10900,7 @@
 #ifdef BUILDING_FOR_MOUNTAIN_LION
     if(notification)
     {
-        NSString *notid = [NSString stringWithFormat:@"dw-notification-%llu", (unsigned long long)notification];
+        NSString *notid = [NSString stringWithFormat:@"dw-notification-%llu", DW_POINTER_TO_ULONGLONG(notification)];
         
 #ifdef BUILDING_FOR_MOJAVE
         // Schedule the notification.