From a22b1b6bc86b5d45aaf84cf171d1f4b3054b1ef9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 21 Apr 2016 20:26:07 +0100 Subject: [PATCH] Fix BufferIterator::difference_type, it should be signed --- src/buffer.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.hh b/src/buffer.hh index 7e03c75c..2b118c89 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -49,7 +49,7 @@ class BufferIterator { public: using value_type = char; - using difference_type = size_t; + using difference_type = ssize_t; using pointer = const value_type*; using reference = const value_type&; using iterator_category = std::bidirectional_iterator_tag;