From 66378cc2d53d4fba540a9c44ce12581ba25cfa9a Mon Sep 17 00:00:00 2001 From: Roel Verdult Date: Fri, 24 Jul 2009 14:02:39 +0000 Subject: [PATCH] Typecast to be specific what is needed --- src/dev_acr122.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev_acr122.c b/src/dev_acr122.c index a8378af..5107645 100644 --- a/src/dev_acr122.c +++ b/src/dev_acr122.c @@ -227,7 +227,7 @@ bool dev_acr122_transceive(const dev_spec ds, const byte_t* pbtTx, const uint32_ // Make sure we have an emulated answer that fits the return buffer if (ulRxBufLen < 4 || (ulRxBufLen-4) > *puiRxLen) return false; // Wipe out the 4 APDU emulation bytes: D5 4B .. .. .. 90 00 - *puiRxLen = ulRxBufLen-4; + *puiRxLen = ((uint32_t)ulRxBufLen)-4; memcpy(pbtRx,abtRxBuf+2,*puiRxLen); // Transmission went successful