Ludovic Rousseau wrote:
Hello,
In changeset 2863 [1] I changed %u in %lu because I got a compilation
warning. The problem is the size_t is 64 bits on a 64-bits
architecture but 32 bits on a 32-bits architecture.
We could use a cast to int in the printf and use %u. I don't think we
will ever have a PIN length of more than 2 billion :-)
Right now you will get a warning on a 32-bits platform until we find
the "best" solution.
I vote for printf("... %lu ...", (unsigned long) whatever, ...);
Cheers,
Nils
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel