From dde29946d528149b8ababf0d8a35bd3c280f8ade Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Tue, 3 Feb 2026 13:23:38 -0500 Subject: [PATCH] xo-reader2 stack: misc qol improvements + improve reader2 utest --- include/xo/object2/DInteger.hpp | 2 +- include/xo/object2/Integer.hpp | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 include/xo/object2/Integer.hpp diff --git a/include/xo/object2/DInteger.hpp b/include/xo/object2/DInteger.hpp index c56a4be..b03693b 100644 --- a/include/xo/object2/DInteger.hpp +++ b/include/xo/object2/DInteger.hpp @@ -28,7 +28,7 @@ namespace xo { /** allocate boxed value @p x using memory from @p mm **/ static DInteger * _box(obj mm, long x); - double value() const noexcept { return value_; } + long value() const noexcept { return value_; } bool pretty(const ppindentinfo & ppii) const; diff --git a/include/xo/object2/Integer.hpp b/include/xo/object2/Integer.hpp new file mode 100644 index 0000000..7279f97 --- /dev/null +++ b/include/xo/object2/Integer.hpp @@ -0,0 +1,12 @@ +/** @file Integer.hpp + * + * @author Roland Conybeare, Feb 2026 + **/ + +#pragma once + +#include "DInteger.hpp" +#include "number/IGCObject_DInteger.hpp" +#include "number/IPrintable_DInteger.hpp" + +/* end Integer.hpp */