diff --git a/paddle/utils/Util.cpp b/paddle/utils/Util.cpp index 45251213d2d79..2cdff9d1aca92 100644 --- a/paddle/utils/Util.cpp +++ b/paddle/utils/Util.cpp @@ -106,7 +106,7 @@ pid_t getTID() { #endif pid_t tid = syscall(__NR_gettid); #endif - CHECK_NE(tid, -1); + CHECK_NE((int)tid, -1); return tid; }