[Openmp-commits] [openmp] 424f14f - [OpenMP] Fix one sign-compare warning from GCC
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 13 10:36:21 PDT 2021
Author: Peyton, Jonathan L
Date: 2021-07-13T12:36:12-05:00
New Revision: 424f14f0d2e98b83a41bdc7408f15d28aaa4cbd0
URL: https://github.com/llvm/llvm-project/commit/424f14f0d2e98b83a41bdc7408f15d28aaa4cbd0
DIFF: https://github.com/llvm/llvm-project/commit/424f14f0d2e98b83a41bdc7408f15d28aaa4cbd0.diff
LOG: [OpenMP] Fix one sign-compare warning from GCC
Added:
Modified:
openmp/runtime/src/kmp_runtime.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp
index 1f1025a72e8c..16d415dc8a74 100644
--- a/openmp/runtime/src/kmp_runtime.cpp
+++ b/openmp/runtime/src/kmp_runtime.cpp
@@ -6552,7 +6552,7 @@ void __kmp_register_library_startup(void) {
__kmp_str_split(tail, '-', &flag_val_str, &tail);
file_name = tail;
if (tail != NULL) {
- long *flag_addr = 0;
+ unsigned long *flag_addr = 0;
unsigned long flag_val = 0;
KMP_SSCANF(flag_addr_str, "%p", RCAST(void **, &flag_addr));
KMP_SSCANF(flag_val_str, "%lx", &flag_val);
More information about the Openmp-commits
mailing list