Follow-up Comment #5, bug #16318 (project freeciv):

This really needs to be fixed. I don't know much about aliasing, but illegal
code produces undefined behavior. The attached patch contains an example of a
fix.

The macro:
#define FC_ENUM_PTR(e) ((int *) (void *) (&e))
needs to be removed

Sorry for the confusion

(file #10369)
    _______________________________________________________

Additional Item Attachment:

File name: aliasing.diff                  Size:2 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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