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); } };