[Pcsclite-cvs-commit] r5516 - /trunk/Drivers/ccid/src/openct/proto-t1.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 18 15:19:35 UTC 2011


Author: rousseau
Date: Tue Jan 18 15:19:34 2011
New Revision: 5516

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5516
Log:
Add an explicit cast to avoid a compiler warning

openct/proto-t1.c:775:10: warning: comparison of integers of different signs:
      'int' and 'unsigned int' [-Wsign-compare]
                        || (n != 4 + t1->rc_bytes) ...
                            ~ ^  ~~~~~~~~~~~~~~~~

Modified:
    trunk/Drivers/ccid/src/openct/proto-t1.c

Modified: trunk/Drivers/ccid/src/openct/proto-t1.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/openct/proto-t1.c?rev=5516&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/openct/proto-t1.c (original)
+++ trunk/Drivers/ccid/src/openct/proto-t1.c Tue Jan 18 15:19:34 2011
@@ -772,7 +772,7 @@
 			|| (sdata[DATA] != ifsd)				/* Wrong ifsd received */
 			|| (sdata[NAD] != swap_nibbles(dad))	/* wrong NAD */
 			|| (!t1_verify_checksum(t1, sdata, n))	/* checksum failed */
-			|| (n != 4 + t1->rc_bytes)				/* wrong frame length */
+			|| (n != 4 + (int)t1->rc_bytes)				/* wrong frame length */
 			|| (sdata[LEN] != 1)					/* wrong data length */
 			|| (sdata[PCB] != (T1_S_BLOCK | T1_S_RESPONSE | T1_S_IFS))) /* wrong PCB */
 			continue;




More information about the Pcsclite-cvs-commit mailing list