Skip to content

Commit

Permalink
[bugfix] Fix bazel compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Aug 25, 2024
1 parent 827391c commit 1a3e3fb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,16 @@ CStatus GDynamicEngine::run() {
CGRAPH_FUNCTION_BEGIN
cur_status_.reset();

switch (dag_type_) {
case internal::GEngineDagType::COMMON: {
commonRunAll();
break;
}
case internal::GEngineDagType::ALL_SERIAL: {
serialRunAll();
break;
}
case internal::GEngineDagType::ALL_PARALLEL: {
parallelRunAll();
break;
}
default:
CGRAPH_RETURN_ERROR_STATUS("unknown engine dag type")
if (internal::GEngineDagType::COMMON == dag_type_) {
commonRunAll();
} else if (internal::GEngineDagType::ALL_SERIAL == dag_type_) {
serialRunAll();
} else if (internal::GEngineDagType::ALL_PARALLEL == dag_type_) {
parallelRunAll();
} else {
CGRAPH_RETURN_ERROR_STATUS("unknown engine dag type")
}

status = cur_status_;
CGRAPH_FUNCTION_END
}
Expand Down
2 changes: 1 addition & 1 deletion src/UtilsCtrl/Container/USerialUniqueArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <vector>
#include <set>

#include "UtilsCtrl/UtilsObject.h"
#include "../UtilsObject.h"

CGRAPH_NAMESPACE_BEGIN

Expand Down
6 changes: 3 additions & 3 deletions src/UtilsCtrl/Container/USmallVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <memory>
#include <cstring>

#include "UtilsCtrl/UtilsObject.h"
#include "../UtilsObject.h"

CGRAPH_NAMESPACE_BEGIN

Expand Down Expand Up @@ -120,8 +120,8 @@ class USmallVector : public UtilsObject {
public:
UIter begin() const { return UIter(data_); }
UIter end() const { return UIter(data_ + cur_index_); }
T front() const { data_[0]; }
T back() const { data_[cur_index_ - 1]; }
T front() const { return data_[0]; }
T back() const { return data_[cur_index_ - 1]; }

private:
T* data_ { nullptr }; // 存放具体数据
Expand Down

0 comments on commit 1a3e3fb

Please sign in to comment.