[Pcsclite-cvs-commit] r374 - trunk/CocoaCard

Ludovic Rousseau rousseau at costa.debian.org
Mon Feb 6 10:28:52 UTC 2006


Author: rousseau
Date: 2006-02-06 10:28:51 +0000 (Mon, 06 Feb 2006)
New Revision: 374

Modified:
   trunk/CocoaCard/MainCardObject.m
   trunk/CocoaCard/OBJECTItem.m
Log:
use %lx instead of %x


Modified: trunk/CocoaCard/MainCardObject.m
===================================================================
--- trunk/CocoaCard/MainCardObject.m	2006-02-06 10:26:41 UTC (rev 373)
+++ trunk/CocoaCard/MainCardObject.m	2006-02-06 10:28:51 UTC (rev 374)
@@ -136,7 +136,7 @@
     [pins manipulateArray : 8];
     
     rv = MSCListPINs(pConnection, &pinMask);
-    printf("rv is %x\n", rv);
+    printf("rv is %lx\n", rv);
 
     for (i = 0; i < 8; i++) {
         if (pinMask & j) {

Modified: trunk/CocoaCard/OBJECTItem.m
===================================================================
--- trunk/CocoaCard/OBJECTItem.m	2006-02-06 10:26:41 UTC (rev 373)
+++ trunk/CocoaCard/OBJECTItem.m	2006-02-06 10:28:51 UTC (rev 374)
@@ -15,7 +15,7 @@
 - (NSString *) getSize {
     char size[6];
     NSString *string;
-    snprintf(size, 6, "%d", pObjectInfo->objectSize);
+    snprintf(size, 6, "%ld", pObjectInfo->objectSize);
     string = [[NSString alloc] initWithCString : size];
     return string;
 }




More information about the Pcsclite-cvs-commit mailing list