<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">This breaks win64 (full log below):<br>RTPInterface.cpp:365:40: error: cast from 'const char*' to 'long int'<br>loses precision [-fpermissive]<br></blockquote>That should be (at most) a warning, not an error.<br></blockquote><br>Why? On Win64, const char* is 64 bits and long int is 32. It's an error<br>according to the C++ standard, as far as I know; if you really want that,<br>you'll first need to cast through an integral value that's big enough<br>(e.g., std::intptr_t) and only then truncate to long.<br></blockquote><div><br></div></div>Well, it's weird that none of the almost 2000 people on our LIVE555 developers' mailing list has complained about this.  So I don't know why you're the only person who is having a problem with this code.  But I agree that the code doesn't look kosher, and should be improved.<div><br></div><div>Does it make your compiler happier if you replace the line:</div><div><br></div><div>      long streamChannelIdLong = (long)key;<br><br></div><div>with:</div><div><br></div><div>      u_int64_t streamChannelIdLong = (u_int64_t)key;</div><br><div>?</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>