From 121aac9a6bc9493e0195e42cbfab60fa042c7ff3 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 1 Apr 2017 22:10:50 +0200 Subject: add casts for varargs from 64bit to 32bit --- src/ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ptp.c b/src/ptp.c index 5f0d4cc..536160d 100644 --- a/src/ptp.c +++ b/src/ptp.c @@ -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 -- cgit v1.2.3