My app uses libxml2, which contains a function "xmlReadMemory(const char * buffer, int size, const char * URL, const char * encoding, int options)"
I do have a "size" to send, but it is an NSUInteger.
This framework is written in C, so it expects me to send an int, which throws a warning in my application since I am now including arm64 as a valid architecture: "Implicit conversion loses integer precision: NSUInteger (aka 'unsigned long') to int". Is there a safe way to resolve this warning?
link to framework API: http://www.xmlsoft.org/html/libxml-parser.html
int isize = (int) usize; if (isize < 0 || isize != usize) Handle_Error(); else xmlReadMemory(buffer, isize, URL, rncoding, options);
– chux - Reinstate Monica