[Libwebsockets] What is (char)(long)pvo->value ?

hanguofu hanguofu at 163.com
Wed Feb 22 05:07:30 CET 2017


Hi , there :


I  am trying to compile lws library in windows but has a problem with the following statement in server.c :


wsi->protocol_interpret_idx = (char)(long)pvo->value;


The compiler is unhappy about that in release version ( in dubug version , anything is fine ) .  I donot want to disable the warnings   C4311  and C4302 for it. Is it possible to modify the source code to fix the warnings ? 


Regards !


Guofu Han 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20170222/717618f4/attachment.html>


More information about the Libwebsockets mailing list