Fixed warnings building on Mac OS X 64-bit
authorSam Lantinga <slouken@libsdl.org>
Mon, 20 Aug 2018 21:19:17 -0700
changeset 1212381021ad636c7
parent 12122 a0c1c1738ee4
child 12124 a6757eff6569
Fixed warnings building on Mac OS X 64-bit
src/hidapi/mac/hid.c
     1.1 --- a/src/hidapi/mac/hid.c	Mon Aug 20 21:18:56 2018 -0700
     1.2 +++ b/src/hidapi/mac/hid.c	Mon Aug 20 21:19:17 2018 -0700
     1.3 @@ -291,7 +291,7 @@
     1.4  										&used_buf_len);
     1.5  		
     1.6  		buf[chars_copied] = 0;
     1.7 -		return chars_copied;
     1.8 +		return (int)chars_copied;
     1.9  	}
    1.10  	else
    1.11  		return 0;
    1.12 @@ -327,7 +327,7 @@
    1.13  										&used_buf_len);
    1.14  		
    1.15  		buf[chars_copied] = 0;
    1.16 -		return used_buf_len;
    1.17 +		return (int)used_buf_len;
    1.18  	}
    1.19  	else
    1.20  		return 0;
    1.21 @@ -835,7 +835,7 @@
    1.22  								   data_to_send, length_to_send);
    1.23  		
    1.24  		if (res == kIOReturnSuccess) {
    1.25 -			return length;
    1.26 +			return (int)length;
    1.27  		}
    1.28  		else if (res == kIOReturnUnsupported) {
    1.29  			/*printf("kIOReturnUnsupported\n");*/
    1.30 @@ -866,7 +866,7 @@
    1.31  	dev->input_reports = rpt->next;
    1.32  	free(rpt->data);
    1.33  	free(rpt);
    1.34 -	return len;
    1.35 +	return (int)len;
    1.36  }
    1.37  
    1.38  static int cond_wait(const hid_device *dev, pthread_cond_t *cond, pthread_mutex_t *mutex)
    1.39 @@ -1031,7 +1031,7 @@
    1.40  	if (skipped_report_id)
    1.41  		len++;
    1.42  
    1.43 -	return len;
    1.44 +	return (int)len;
    1.45  }
    1.46  
    1.47