[Pcsclite-cvs-commit] r5517 - /trunk/PCSC/src/readerfactory.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 18 15:25:24 UTC 2011


Author: rousseau
Date: Tue Jan 18 15:25:23 2011
New Revision: 5517

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

readerfactory.c:1033:45: warning: comparison of integers of different signs:
      'unsigned long' and 'SCARDHANDLE' (aka 'long') [-Wsign-compare]
                                if ((rContext->dwIdentity + randHandle) ==
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

Modified:
    trunk/PCSC/src/readerfactory.c

Modified: trunk/PCSC/src/readerfactory.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/readerfactory.c?rev=5517&op=diff
==============================================================================
--- trunk/PCSC/src/readerfactory.c (original)
+++ trunk/PCSC/src/readerfactory.c Tue Jan 18 15:25:23 2011
@@ -1030,7 +1030,7 @@
 			while (list_iterator_hasnext(l))
 			{
 				currentHandle = list_iterator_next(l);
-				if ((rContext->dwIdentity + randHandle) ==
+				if (((LONG)rContext->dwIdentity + randHandle) ==
 					(currentHandle->hCard))
 				{
 					/* Get a new handle and loop again */




More information about the Pcsclite-cvs-commit mailing list