From 250872913db8e785c4fbc0c6aeb477984c09e85a Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 14 May 2018 19:59:16 +1000 Subject: Fix warnings in debug assertions. --- gtk/PlatGTK.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index d938693d0..42db59903 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -754,7 +754,7 @@ void SurfaceImpl::MeasureWidths(Font &font_, std::string_view text, XYPOSITION * i++; } } - PLATFORM_ASSERT(i == text.length()); + PLATFORM_ASSERT(static_cast(i) == text.length()); } else { int positionsCalculated = 0; if (et == dbcs) { @@ -784,7 +784,7 @@ void SurfaceImpl::MeasureWidths(Font &font_, std::string_view text, XYPOSITION * place++; } } - PLATFORM_ASSERT(i == text.length()); + PLATFORM_ASSERT(static_cast(i) == text.length()); } } if (positionsCalculated < 1 ) { @@ -827,7 +827,7 @@ void SurfaceImpl::MeasureWidths(Font &font_, std::string_view text, XYPOSITION * // If something failed, fill in rest of the positions positions[i++] = clusterStart; } - PLATFORM_ASSERT(i == text.length()); + PLATFORM_ASSERT(static_cast(i) == text.length()); } } } -- cgit v1.2.3