diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2017-04-01 22:10:50 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2017-04-01 22:10:50 +0200 |
commit | 121aac9a6bc9493e0195e42cbfab60fa042c7ff3 (patch) | |
tree | 4965b5ac8c0119363fa15ff3be18b9d8921a49f9 /src | |
parent | f88160e425f7759975d9ba9fe021c557ebd80541 (diff) | |
download | libmtp-121aac9a6bc9493e0195e42cbfab60fa042c7ff3.tar.gz |
add casts for varargs from 64bit to 32bit
Diffstat (limited to 'src')
-rw-r--r-- | src/ptp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4108,7 +4108,7 @@ ptp_android_sendpartialobject (PTPParams* params, uint32_t handle, uint64_t offs PTPContainer ptp; uint16_t ret; - PTP_CNT_INIT(ptp, PTP_OC_ANDROID_SendPartialObject, handle, offset & 0xFFFFFFFF, offset >> 32, len); + PTP_CNT_INIT(ptp, PTP_OC_ANDROID_SendPartialObject, handle, (uint32_t)(offset & 0xFFFFFFFF), (uint32_t)(offset >> 32), len); /* * MtpServer.cpp is buggy: it uses write() without offset |