From 382a5a156e2f638e4b2414b5d34231ad296dad86 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 23 Feb 2018 16:10:07 +0100 Subject: [PATCH] Use ptrdiff_t as wxVector::difference_type instead of size_t difference_type must be signed, using size_t was clearly a mistake. --- include/wx/vector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/vector.h b/include/wx/vector.h index e73b1b9514e5..49b0840c9f6a 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -160,7 +160,7 @@ class wxVector public: typedef size_t size_type; - typedef size_t difference_type; + typedef ptrdiff_t difference_type; typedef T value_type; typedef value_type* pointer; typedef const value_type* const_pointer;