2011/2/6 <[email protected]>:
> Revision: 5185
> Author: andre
> Date: 2011-02-06 17:28:30 +0000 (Sun, 06 Feb 2011)
>
> Log Message:
> -----------
> Revert r5137, because size_t is defined as unsigned integer type (without
> further qualification).
>
> http://www.opengroup.org/onlinepubs/000095399/basedefs/stddef.h.html
I will not argue on the fact that integer is not just int. It can also
be long and long long.
> Modified Paths:
> --------------
> trunk/src/tools/opensc-explorer.c
>
> Modified: trunk/src/tools/opensc-explorer.c
> ===================================================================
> --- trunk/src/tools/opensc-explorer.c 2011-02-05 22:40:08 UTC (rev 5184)
> +++ trunk/src/tools/opensc-explorer.c 2011-02-06 17:28:30 UTC (rev 5185)
> @@ -1437,7 +1437,7 @@
> goto err;
> }
> if ((size_t)r != len) {
> - printf("expecting %lu, got only %d bytes.\n", len, r);
> + printf("expecting %u, got only %d bytes.\n", len, r);
> goto err;
> }
>
In fact the correct answer is %zu [1]
But this does not work on Windows.
Bye
[1]
http://www.mail-archive.com/[email protected]/msg00117.html
--
Dr. Ludovic Rousseau
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel