[mapserver-commits] [MapServer/MapServer] 919161: Ruby bindings: Return 0 on exceptions, not NULL

Even Rouault noreply at github.com
Wed Jan 10 05:26:26 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/MapServer/MapServer
  Commit: 9191614c4030a1067448bbf6b49a43b66f56ae84
      https://github.com/MapServer/MapServer/commit/9191614c4030a1067448bbf6b49a43b66f56ae84
  Author: Florian Weimer <fweimer at redhat.com>
  Date:   2024-01-03 (Wed, 03 Jan 2024)

  Changed paths:
    M src/mapscript/ruby/rbmodule.i

  Log Message:
  -----------
  Ruby bindings: Return 0 on exceptions, not NULL

At least Ruby 3.2 anf SWIG 4.1 expect an integer here, resulting in
an int-conversion error with current/upcoming compilers.  Return 0
instead of NULL works with pointer return types, too, should there
be a supported Ruby version which uses a pointer in this context.


  Commit: dcdd10e8a52eb6ae04000666e6bb4298c11a5406
      https://github.com/MapServer/MapServer/commit/dcdd10e8a52eb6ae04000666e6bb4298c11a5406
  Author: Even Rouault <even.rouault at spatialys.com>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

  Changed paths:
    M src/mapscript/ruby/rbmodule.i

  Log Message:
  -----------
  Merge pull request #6998 from fweimer-rh/c99

Ruby bindings: Return 0 on exceptions, not NULL


Compare: https://github.com/MapServer/MapServer/compare/10c05640537c...dcdd10e8a52e


More information about the MapServer-commits mailing list