From 2b6fb9babe7ef3fbac72619c3b176650e95c237a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Mon, 24 Feb 2020 17:42:11 +0800 Subject: [PATCH] fix data type of asserts, test=develop (#2787) --- lite/core/mir/static_kernel_pick_pass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/core/mir/static_kernel_pick_pass.h b/lite/core/mir/static_kernel_pick_pass.h index f655b298bf..6628444338 100644 --- a/lite/core/mir/static_kernel_pick_pass.h +++ b/lite/core/mir/static_kernel_pick_pass.h @@ -58,7 +58,7 @@ class StaticKernelPickPass : public mir::StmtPass { const std::unordered_map& out_types, const std::vector& in_names, const std::vector& out_names) { - CHECK_GT(places.size(), 0) << "valid_places is empty."; + CHECK_GT(places.size(), static_cast(0)) << "valid_places is empty."; float final_score{-1.}; Place winner_place{places[0]}; const int kMax = -- GitLab