# fix 32/64-bit pointer for 'this' in AE
--- src/app_mac.cpp.orig	2011-10-04 01:37:31.000000000 -0500
+++ src/app_mac.cpp	2011-10-04 01:38:04.000000000 -0500
@@ -35,7 +35,7 @@
 static AEEventHandlerUPP macCallbackUrlHandlerUPP = 0;
 
 OSStatus
-appleEventProcessor(const AppleEvent *ae, AppleEvent *, long /*handlerRefCon*/)
+appleEventProcessor(const AppleEvent *ae, AppleEvent *, SRefCon /*handlerRefCon*/)
 {
     OSType aeID = typeWildCard;
     OSType aeClass = typeWildCard;
@@ -57,7 +57,7 @@
 }
 
 OSStatus
-macCallbackUrlHandler( const AppleEvent *ae, AppleEvent *, long /*handlerRefCon*/)
+macCallbackUrlHandler( const AppleEvent *ae, AppleEvent *, SRefCon /*handlerRefCon*/)
 {
     DEBUG_BLOCK
     OSErr error = noErr;
