Not a bug... -x => ~x + 1, but one instruction vs. two, so.. On Fri, Oct 5, 2012 at 12:08 PM, Ruud van Gaal <[email protected]> wrote:
> 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 > > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss > >
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
