aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuansong Zhang <zhang.guansong@gmail.com>2018-04-10 15:28:31 +0000
committerGuansong Zhang <zhang.guansong@gmail.com>2018-04-10 15:28:31 +0000
commitf88a34de7a15807b2611ba292f98f0302913690f (patch)
tree5fa03b6ece33912103d0465c51d9c548a5eab364
parent219ff246b18c0f5fdd9786680968d9310ec21447 (diff)
[OpenMP] Remove extra warning when we build
Summary: This one line change is to remove this warning message "warning: integer conversion resulted in a change of sign" Reviewers: grokos Reviewed By: grokos Subscribers: openmp-commits Tags: #openmp Differential Revision: https://reviews.llvm.org/D45415 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@329713 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--libomptarget/deviceRTLs/nvptx/src/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libomptarget/deviceRTLs/nvptx/src/debug.h b/libomptarget/deviceRTLs/nvptx/src/debug.h
index 908d6d7..1468757 100644
--- a/libomptarget/deviceRTLs/nvptx/src/debug.h
+++ b/libomptarget/deviceRTLs/nvptx/src/debug.h
@@ -159,7 +159,7 @@
// implement
#if OMPTARGET_NVPTX_DEBUG
-#define DON(_flag) ((OMPTARGET_NVPTX_DEBUG) & (_flag))
+#define DON(_flag) ((unsigned)(OMPTARGET_NVPTX_DEBUG) & (_flag))
#define PRINT0(_flag, _str) \
{ \