Skip to content

Commit

Permalink
消除macosx下IRecover编译告警
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Nov 20, 2024
1 parent 0ed36a6 commit 990fb0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos_python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: macOS_arm64
name: macOS_python_arm64

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion hikyuu_cpp/hikyuu/indicator/imp/IRecover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void IRecover::_checkParam(const string& name) const {
}

void IRecover::checkInputIndicator(const Indicator& ind) {
HKU_CHECK(typeid(*(ind.getImp())) == typeid(IKData),
HKU_CHECK(dynamic_cast<IKData*>(ind.getImp().get()) != nullptr,
"Only the following indicators are accepted: OPEN|HIGH|CLOSE|LOW");
string part = ind.getParam<string>("kpart");
HKU_CHECK(part == "CLOSE" || part == "OPEN" || part == "HIGH" || part == "LOW",
Expand Down

0 comments on commit 990fb0b

Please sign in to comment.