[llvm] [NFC][OpenMP] Update a test that was failing on aarch64. (PR #164456)

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 10:59:05 PDT 2025


================
@@ -38,7 +38,7 @@ struct ST {
         // CHECK-NEXT: 0 1
         intptr_t offset_device = (intptr_t)mapped_ptr - (intptr_t)&d;
         printf("%d %d\n", &d == mapped_ptr, offset == offset_device);
-        printf("%lu %ld\n", offset, offset_device);
+        printf("%ld %ld\n", offset, offset_device);
----------------
kparzysz wrote:

`printf("%" PRIdPTR " %" PRIdPTR "\n", offset, offset_device)` would be more portable.

https://en.cppreference.com/w/cpp/header/cinttypes.html

  
 

https://github.com/llvm/llvm-project/pull/164456


More information about the llvm-commits mailing list