From d36bb13f52b3899fd0f57e38f00d97e2c3a0f627 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 18 Mar 2023 12:40:46 -0400 Subject: -Wconversion --- libalee/state.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libalee/state.cpp') diff --git a/libalee/state.cpp b/libalee/state.cpp index bfd29d1..b19d291 100644 --- a/libalee/state.cpp +++ b/libalee/state.cpp @@ -81,11 +81,11 @@ void State::reset() std::size_t State::size() const noexcept { - return std::distance(dstack, static_cast(dsp)); + return dsp - dstack; } std::size_t State::rsize() const noexcept { - return std::distance(rstack, static_cast(rsp)); + return rsp - rstack; } -- cgit v1.2.3