[ENet-discuss] Warning in encoder

Ruud van Gaal ruud at racer.nl
Fri Oct 5 02:08:35 PDT 2012


Hi,

While compiling ENet v1.3.5 in Visual Studio 2008, I get this warning:

compress.cpp(593) : warning C4146: unary minus operator applied to unsigned
type, result still unsigned

When looking at the ENET_RANGE_CODER_ENCODE macro it indeed looks a bit
strange, since 'encodeLow' is unsigned, but the negative of it is used in
that macro.

Any ideas whether this indeed may be a bug in some circumstances?

Cheers,
Ruud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20121005/da3530d5/attachment-0001.html>


More information about the ENet-discuss mailing list