From 030952a2204c165328bfb067de832214b3c12abf Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Sun, 16 Aug 2015 20:14:50 +0100 Subject: [PATCH] Restored explicit cast that was removed in 7af5d437e49878ea4e8de73a02d99ad4e5751933. Found with [-Wsign-compare] while building with MINGW: pointer difference is of different size on linux and windows. --- re2c/src/parse/scanner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/src/parse/scanner.cc b/re2c/src/parse/scanner.cc index f53e4fef..2c50b30f 100644 --- a/re2c/src/parse/scanner.cc +++ b/re2c/src/parse/scanner.cc @@ -349,7 +349,7 @@ void Scanner::fill (uint32_t need) { need = BSIZE; } - if (top - lim < need) + if (static_cast (top - lim) < need) { const size_t copy = static_cast (lim - bot); char * buf = new char[copy + need]; -- 2.40.0