Follow-up Comment #7, bug #21950 (project freeciv):

> #define IDENTITY_NUMBER_SIZE (1+((MAX_UINT16 << 2) + 3))

> What is the +3 for?

The two lowest bits that MAX_UINT16 << 2 leaves cleared. It really should be
written as binary (11) to make code more readable, but I don't think there's
portable (older compilers) way to do that in C.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21950>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to