JDK-6980847 broke 32-bit builds

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      JDK-6980847 broke 32-bit, since jlong is not directly assignable to ptr:

      ```
      * For target support_native_java.base_libnio_UnixCopyFile.o:
      /home/runner/work/jdk/jdk/src/java.base/unix/native/libnio/fs/UnixCopyFile.c: In function 'Java_sun_nio_fs_UnixCopyFile_bufferedCopy0':
      /home/runner/work/jdk/jdk/src/java.base/unix/native/libnio/fs/UnixCopyFile.c:83:17: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
         83 | char* buf = (char*)address;
            | ^
      cc1: all warnings being treated as errors
      ```

            Assignee:
            Unassigned
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: