From f6e60cc95091c2805fbcacc552dbc2ac26b0b7c6 Mon Sep 17 00:00:00 2001 From: "zhaode.wzd" Date: Mon, 4 Dec 2023 16:40:47 +0800 Subject: [PATCH] [MNN:Bugfix] Fix Windows compile error. --- source/core/Backend.hpp | 2 +- tools/converter/source/optimizer/onnxextra/OnnxClip.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/Backend.hpp b/source/core/Backend.hpp index 29cdb4a33..0bf115992 100644 --- a/source/core/Backend.hpp +++ b/source/core/Backend.hpp @@ -116,7 +116,7 @@ class Backend : public NonCopyable { * @brief callback after resize ops. */ virtual ErrorCode onResizeEnd() { - return NO_ERROR; + return MNN::NO_ERROR; } /** diff --git a/tools/converter/source/optimizer/onnxextra/OnnxClip.cpp b/tools/converter/source/optimizer/onnxextra/OnnxClip.cpp index e38bf1c56..3f89f6575 100644 --- a/tools/converter/source/optimizer/onnxextra/OnnxClip.cpp +++ b/tools/converter/source/optimizer/onnxextra/OnnxClip.cpp @@ -82,7 +82,7 @@ class OnnxClipTransform : public OnnxExtraManager::Transform { halide_type_code_t type; for (int i = 0; i < inputs.size(); ++i) { if (nullptr != inputs[i] && nullptr != inputs[i]->getInfo()) { - type = inputs[i]->getInfo()->type.code; + type = static_cast(inputs[i]->getInfo()->type.code); break; } }