From 8ba7d7ba48d3a770cf2a9c576c6d429dd909893e Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Thu, 21 Aug 2025 14:24:42 +0200 Subject: [PATCH] fix error for clang --- src/runtime/c/pgf/vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/c/pgf/vector.h b/src/runtime/c/pgf/vector.h index dd86869b6..edf0fc6e5 100644 --- a/src/runtime/c/pgf/vector.h +++ b/src/runtime/c/pgf/vector.h @@ -93,8 +93,8 @@ public: iterator begin() { return iterator(ref::from_ptr(&v()->data[0])); } iterator end() { return iterator(ref::from_ptr(&v()->data[v()->len])); } - bool operator ==(vector& other) const { return offset==other.as_object(); } - bool operator !=(vector& other) const { return offset!=other.as_object(); } + bool operator ==(vector& other) const { return offset==other.offset; } + bool operator !=(vector& other) const { return offset!=other.offset; } bool operator ==(object other_offset) const { return offset==other_offset; } bool operator !=(object other_offset) const { return offset!=other_offset; }