[libc-commits] [libc] [libc] fix -Wshorten-64-to-32 for 32b arm mmap (PR #77350)

via libc-commits libc-commits at lists.llvm.org
Mon Jan 8 10:31:30 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff c52b467875e26d5d3554514489d965eda3ab0cd2 a10693c80a733511a722209ffe4488cdcef9ae50 -- libc/include/llvm-libc-types/off_t.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/include/llvm-libc-types/off_t.h b/libc/include/llvm-libc-types/off_t.h
index f1c38d6bb5..a0cbe99218 100644
--- a/libc/include/llvm-libc-types/off_t.h
+++ b/libc/include/llvm-libc-types/off_t.h
@@ -9,7 +9,7 @@
 #ifndef __LLVM_LIBC_TYPES_OFF_T_H__
 #define __LLVM_LIBC_TYPES_OFF_T_H__
 
-#if defined(__LP64__) || defined (__riscv)
+#if defined(__LP64__) || defined(__riscv)
 typedef __INT64_TYPE__ off_t;
 #else
 typedef __INT32_TYPE__ off_t;

``````````

</details>


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


More information about the libc-commits mailing list