From 2711fdc40fdaccff4c55992ac4af2109979e6638 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 9 Jan 2013 12:30:32 +0000 Subject: [PATCH] get rid of warning by casting --- ykcore/ykcore_osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykcore/ykcore_osx.c b/ykcore/ykcore_osx.c index 281498b..bd4538a 100644 --- a/ykcore/ykcore_osx.c +++ b/ykcore/ykcore_osx.c @@ -101,7 +101,7 @@ void *_ykusb_open_device(int vendor_id, int *product_ids, size_t pids_len) CFIndex i; for(i = 0; i < cnt; i++) { - IOHIDDeviceRef dev = CFArrayGetValueAtIndex( array, i ); + IOHIDDeviceRef dev = (IOHIDDeviceRef)CFArrayGetValueAtIndex( array, i ); long devVendorId = _ykosx_getIntProperty( dev, CFSTR( kIOHIDVendorIDKey )); if(devVendorId == vendor_id) { long devProductId = _ykosx_getIntProperty( dev, CFSTR( kIOHIDProductIDKey )); -- 2.39.5