[Pcsclite-cvs-commit] r5515 - /trunk/Drivers/ccid/src/ifdhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jan 18 15:18:30 UTC 2011
Author: rousseau
Date: Tue Jan 18 15:18:29 2011
New Revision: 5515
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5515
Log:
Add an explicit cast to avoid a compiler warning
ifdhandler.c:410:16: warning: comparison of integers of different signs:
'unsigned long' and 'int' [-Wsign-compare]
if (*Length >= CcidSlots[reader_index].nATRLength)
~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified:
trunk/Drivers/ccid/src/ifdhandler.c
Modified: trunk/Drivers/ccid/src/ifdhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/ifdhandler.c?rev=5515&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/ifdhandler.c (original)
+++ trunk/Drivers/ccid/src/ifdhandler.c Tue Jan 18 15:18:29 2011
@@ -407,7 +407,7 @@
/* If Length is not zero, powerICC has been performed.
* Otherwise, return NULL pointer
* Buffer size is stored in *Length */
- if (*Length >= CcidSlots[reader_index].nATRLength)
+ if ((int)*Length >= CcidSlots[reader_index].nATRLength)
{
*Length = CcidSlots[reader_index].nATRLength;
More information about the Pcsclite-cvs-commit
mailing list