[vlc-devel] [vlc-commits] Contribs: update live555 for security issues
Steinar H. Gunderson
sgunderson at bigfoot.com
Wed Dec 4 23:25:10 CET 2013
On Thu, Dec 05, 2013 at 07:51:35AM +1000, Ross Finlayson wrote:
>> This breaks win64 (full log below):
>> RTPInterface.cpp:365:40: error: cast from 'const char*' to 'long int'
>> loses precision [-fpermissive]
> That should be (at most) a warning, not an error.
Why? On Win64, const char* is 64 bits and long int is 32. It's an error
according to the C++ standard, as far as I know; if you really want that,
you'll first need to cast through an integral value that's big enough
(e.g., std::intptr_t) and only then truncate to long.
/* Steinar */
More information about the vlc-devel