aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/relptr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/relptr.h b/common/relptr.h
index 035d61fb..d45912ab 100644
--- a/common/relptr.h
+++ b/common/relptr.h
@@ -32,6 +32,7 @@ NPNR_PACKED_STRUCT(template <typename T> struct RelSlice {
const T *end() const { return get() + length; }
const size_t size() const { return length; }
+ const ptrdiff_t ssize() const { return length; }
const T &operator*() const { return *(get()); }