Please consider this patch to resolve a number of 32/64 implicit conversions which most probably trigger (without this patch) a good number of warnings from various 32 and 64 bits compilers.
This patch does not cover at all smaller size checks (implicit conversions from 32/16 to 16/8 for instance like int to char), it focuses only on the usual discrepancies seen in code needing to be correct for 32 and 64 bits, without raising needless alarms. The usual stuff arising from int, size_t, streamoff not having the same relation one to another in 32 bits or 64 bits models. Some of these fixups would better be made by changing some methods signature, but I didn't wanted to get on a sloppy way, as I'm not yet fully used to PoDoFo code base. Overall, this consist of some static_cast<> as appropriate to match a value to what a system library or dependant library expect as a parameter. Sometimes the fix is done by changing the type of a local variable (some int becoming size_t for instance). I chose the path of least changes when given the opportunity. -- Best Regards, Meilleures salutations, Met vriendelijke groeten, Olivier Mascia
size-32-64-rev1898.patch
Description: Binary data
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users