From 19e8a4382760f43ca137f3fb86490c340316cf6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 11 Aug 2014 10:55:12 +0000 Subject: [PATCH] Fix lossy conversion warning in wxString::reverse_iterator::operator-. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/string.h b/include/wx/string.h index 504f0fd325..c15a80f0cc 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -1041,7 +1041,7 @@ public: reverse_iterator_impl operator-=(ptrdiff_t n) { m_cur += n; return *this; } - unsigned operator-(const reverse_iterator_impl& i) const + difference_type operator-(const reverse_iterator_impl& i) const { return i.m_cur - m_cur; } bool operator==(const reverse_iterator_impl& ri) const