[Freeciv-tickets] [freeciv] #48722: Incorrect types passed as API_TYPE_INT

Back to archive index
OSDN Ticket System norep****@osdn*****
Sat Sep 30 13:25:49 JST 2023


#48722: Incorrect types passed as API_TYPE_INT

  Open Date: 2023-09-24 18:48
Last Update: 2023-09-30 07:25

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

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

Last Changes/Comment on this Ticket:
2023-09-30 07:25 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


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

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.0.9
     Component: Scripting API
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

We've encountered issues with wrong kind of types being passed to lua signals and functions as API_TYPE_INT in the past. I believe them all to be broken in practice, even if no script has exposed those bugs in a serious way.
Make sure to cast all values passed as API_TYPE_INT as lua_Integer to make sure they are correct no matter C-side type width on the specific host and/or lua-side width.

-- 
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/48722
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48722



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