URL:
  <http://gna.org/bugs/?23147>

                 Summary: Mysql luasql backend uses deprecated luaL_optint()
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Mon 05 Jan 2015 02:32:13 PM EET
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Ready For Test
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.6.0, 3.0.0

    _______________________________________________________

Details:

First reported by jtn on mailing-list:
https://mail.gna.org/public/freeciv-dev/2015-01/msg00098.html

We could either enable compatibility mode in lua compilation, or to change the
call to new luaL_optinteger() one.
Since we're not going back to lua versions where luaL_optinteger() was not
available, using that is more sustainable solution than using luaL_optint()
via compatibility mode as long as it stays available that way.

Fix attached. luaL_optinteger() exist in lua-5.2 so this is safe to commit
also to S2_6 already.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 05 Jan 2015 02:32:13 PM EET  Name: LuaLOptInteger.patch  Size: 604B 
 By: cazfi

<http://gna.org/bugs/download.php?file_id=23405>

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to