X-Git-Url: http://git.joshuawise.com/ambien.git/blobdiff_plain/0ed4d10d31e6b8e8545939ced00551502d064f87..HEAD:/Ambien.cpp diff --git a/Ambien.cpp b/Ambien.cpp index f6d7710..f81c5c1 100644 --- a/Ambien.cpp +++ b/Ambien.cpp @@ -109,7 +109,7 @@ IOWorkLoop* Ambien::getWorkLoop() IOReturn Ambien::message(UInt32 type, IOService *provider, void *arg) { - unsigned int argi = (unsigned int)arg; + unsigned int argi = (unsigned int)(unsigned long)/* screw off, it's a bitmask, not a pointer */arg; if (type == kIOPMMessageClamshellStateChange) {