Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289143

JDK-6980847 broke 32-bit builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • 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
      ```

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

              Created:
              Updated:
              Resolved: