From 6cd106abd4976deae6c13954aa452f192a78ba86 Mon Sep 17 00:00:00 2001 From: adstraw Date: Tue, 14 Dec 2021 08:03:10 -0800 Subject: [PATCH] fix build error for signed / unsigned comparison --- src/runtime/hexagon/hexagon/hexagon_common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/hexagon/hexagon/hexagon_common.cc b/src/runtime/hexagon/hexagon/hexagon_common.cc index 6927cd5f6fcc..246a956ee66b 100644 --- a/src/runtime/hexagon/hexagon/hexagon_common.cc +++ b/src/runtime/hexagon/hexagon/hexagon_common.cc @@ -83,7 +83,7 @@ PackedFunc WrapPackedFunc(TVMBackendPackedCFunc faddr, const ObjectPtr& TVMValue* arg_values = const_cast(args.values); std::vector> buffer_args; - for (size_t i = 0; i < args.num_args; i++) { + for (int i = 0; i < args.num_args; i++) { if (args.type_codes[i] == kTVMDLTensorHandle) { DLTensor* tensor = static_cast(arg_values[i].v_handle); buffer_args.emplace_back(i, static_cast(tensor->data));