| 1 | --- rcxlib/RCX_USBTowerPipe_osx.cpp.orig 2011-05-08 18:40:04.000000000 -0700 |
| 2 | +++ rcxlib/RCX_USBTowerPipe_osx.cpp 2011-05-08 18:40:07.000000000 -0700 |
| 3 | @@ -90,7 +90,7 @@ |
| 4 | }; |
| 5 | |
| 6 | static void ReadCompletionGlue(void *refCon, IOReturn result, void *arg0); |
| 7 | - void ReadCompletion(IOReturn result, UInt32 n); |
| 8 | + void ReadCompletion(IOReturn result, uintptr_t n); |
| 9 | void StartRead(); |
| 10 | void ConsumeInBuffer(); |
| 11 | void SetTimeout(long timeout_ms); |
| 12 | @@ -288,7 +288,7 @@ |
| 13 | } |
| 14 | |
| 15 | |
| 16 | -void RCX_USBTowerPipe_osx::ReadCompletion(IOReturn result, UInt32 n) |
| 17 | +void RCX_USBTowerPipe_osx::ReadCompletion(IOReturn result, uintptr_t n) |
| 18 | { |
| 19 | if (result == kIOReturnAborted) return; |
| 20 | |
| 21 | @@ -328,7 +328,7 @@ |
| 22 | void RCX_USBTowerPipe_osx::ReadCompletionGlue(void *refCon, IOReturn result, void *arg0) |
| 23 | { |
| 24 | RCX_USBTowerPipe_osx* pipe = (RCX_USBTowerPipe_osx*)refCon; |
| 25 | - pipe->ReadCompletion(result, (UInt32)arg0); |
| 26 | + pipe->ReadCompletion(result, (uintptr_t)arg0); |
| 27 | } |
| 28 | |
| 29 | |