From 96358368f520a710626aafbd0f55c9db552bd0ae Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Mon, 2 May 2011 16:43:03 +0000 Subject: [PATCH] cast explicitly sz (uint8_t) in size_t --- libnfc/chips/pn53x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index aa910c2..3f89fff 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1372,7 +1372,7 @@ pn53x_initiator_transceive_bytes_timed (nfc_device_t * pnd, const byte_t * pbtTx pn53x_write_register (pnd, REG_CIU_COMMAND, 0xFF, SYMBOL_COMMAND & SYMBOL_COMMAND_TRANSCEIVE); pn53x_write_register (pnd, REG_CIU_FIFOLEVEL, 0xFF, SYMBOL_FLUSH_BUFFER); for (i=0; i< szTx; i++) { - pn53x_write_register (pnd, REG_CIU_FIFODATA, 0xFF, pbtTx[i]); + pn53x_write_register (pnd, REG_CIU_FIFODATA, 0xFF, pbtTx[i]); } // Send data @@ -1380,8 +1380,8 @@ pn53x_initiator_transceive_bytes_timed (nfc_device_t * pnd, const byte_t * pbtTx // Recv data pn53x_read_register (pnd, REG_CIU_FIFOLEVEL, &sz); - *pszRx = sz & SYMBOL_FIFO_LEVEL; - for (i=0; i< sz; i++) { + *pszRx = (size_t)(sz); + for (i=0; i