[Freeciv-tickets] [freeciv] #46414: Drop FC_..._TO_...() cast macros involving unsigned values

Back to archive index
OSDN Ticket System norep****@osdn*****
Fri Jun 9 07:19:00 JST 2023


#46414: Drop FC_..._TO_...() cast macros involving unsigned values

  Open Date: 2023-01-01 19:42
Last Update: 2023-06-09 01:19

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/46414
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46414

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2023-06-09 01:19 Updated by: cazfi
 * Milestone Update from (None) to 3.0.9


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Patches
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.0.9
     Component: General
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

FC_PTR_TO_UINT(), FC_UINT_TO_PTR(), FC_SIZE_TO_PTR(), and FC_PTR_TO_SIZE() all have a bug that they actually use signed intptr_t instead of unsigned uintptr_t, nor does configure.ac setup that type. While these would be easy to fix, it's even easier to just drop them. They have no current users, and we don't want new users for such legacy casting methods.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/46414
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46414



More information about the Freeciv-tickets mailing list
Back to archive index