diff --git a/src/runtime/c/pgf/db.h b/src/runtime/c/pgf/db.h index d1725588a..6aad89e4a 100644 --- a/src/runtime/c/pgf/db.h +++ b/src/runtime/c/pgf/db.h @@ -35,7 +35,7 @@ public: static ref from_ptr(A *ptr) { return (((uint8_t*) ptr) - current_base); } - object as_object() { return offset; } + object as_object() const { return offset; } static object tagged(ref ref) {