diff --git a/ostd/range.hh b/ostd/range.hh index 2cdbee2..ed5db82 100644 --- a/ostd/range.hh +++ b/ostd/range.hh @@ -662,8 +662,8 @@ public: RangeSize size() const { return p_end - p_beg; } HalfRange - slice(RangeSize start, RangeSize p_end) const { - return HalfRange(p_beg + start, p_beg + p_end); + slice(RangeSize start, RangeSize end) const { + return HalfRange(p_beg + start, p_beg + end); } RangeReference operator[](RangeSize idx) const { diff --git a/ostd/stream.hh b/ostd/stream.hh index 6b309ef..86bbc50 100644 --- a/ostd/stream.hh +++ b/ostd/stream.hh @@ -36,7 +36,7 @@ struct StreamRange; namespace detail { template struct FormatOutRange: OutputRange, char> { - FormatOutRange(char *buf): buf(buf), idx(0) {} + FormatOutRange(char *ibuf): buf(ibuf), idx(0) {} FormatOutRange(const FormatOutRange &r): buf(r.buf), idx(r.idx) {} char *buf; Size idx;