From 68a906e32db92dd98f2e64ede00bd27548af444d Mon Sep 17 00:00:00 2001 From: jeefo Date: Tue, 7 May 2024 23:11:21 +0300 Subject: [PATCH] fix: build on recent gcc13 (ref #561) --- inc/graph.h | 4 ++-- inc/yapb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/graph.h b/inc/graph.h index 24fa82b..48576f6 100644 --- a/inc/graph.h +++ b/inc/graph.h @@ -268,8 +268,8 @@ public: const IntArray &getNodesInBucket (const Vector &pos); public: - size_t getMaxRouteLength () const { - return m_paths.length () / 2; + int32_t getMaxRouteLength () const { + return length () / 2; } StringRef getAuthor () const { diff --git a/inc/yapb.h b/inc/yapb.h index 6a4ad33..1cb06eb 100644 --- a/inc/yapb.h +++ b/inc/yapb.h @@ -188,7 +188,7 @@ public: m_path[0] = 0; } - void init (size_t length) { + void init (int32_t length) { m_path = cr::makeUnique (length); } };