Skip to content

Commit

Permalink
fix: build on recent gcc14
Browse files Browse the repository at this point in the history
  • Loading branch information
jeefo committed May 15, 2024
1 parent ca73751 commit 1df9da8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/crlib
Submodule crlib updated 2 files
+8 −0 .gitattributes
+2 −2 crlib/deque.h
2 changes: 1 addition & 1 deletion inc/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ class BotGraph final : public Singleton <BotGraph> {

public:
int32_t getMaxRouteLength () const {
return length () / 2;
return (length () / 2) + (kMaxNodes / 256);
}

StringRef getAuthor () const {
Expand Down
3 changes: 2 additions & 1 deletion inc/yapb.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ class PathWalk final : public NonCopyable {
}

void init (int32_t length) {
m_path = cr::makeUnique <int32_t[]> (length);
const auto allocSize = static_cast <uint32_t> (length);
m_path = cr::makeUnique <int32_t[]> (allocSize);
}
};

Expand Down

0 comments on commit 1df9da8

Please sign in to comment.