jogl
  1. jogl
  2. JOGL-251

ptrdiff_t conversion is wrong in JOGL

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: jogl
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      251

      Description

      The C-level "ptrdiff_t" data type is being mapped to the Java type "int" by
      GlueGen, which is incorrect. It should be mapped to type "long" for 64-bit
      safety. It is not completely clear why this is happening. Updating
      make/stub_includes/common/stddef.h with the correct typedef does not fix the
      problem. More investigation is needed. Once this is correctly changed, we need
      to provide manual trampoline methods with the original signatures taking "int"
      in order to maintain backward binary compatibility.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jogl-issues
            Reporter:
            kbr
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: