diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx index 7910a293d570..13b7e839c3e9 100644 --- a/ucb/source/ucp/ftp/ftpurl.cxx +++ b/ucb/source/ucp/ftp/ftpurl.cxx @@ -30,6 +30,7 @@ #include #include #include +#include #include "ftpurl.hxx" #include "ftpcontentprovider.hxx" @@ -458,8 +459,8 @@ std::vector FTPURL::list( OUString viewurl(ident(true,false)); while(true) { - while(p2-fwd < int(len) && *p2 != '\n') ++p2; - if(p2-fwd == int(len)) break; + while(o3tl::make_unsigned(p2-fwd) < len && *p2 != '\n') ++p2; + if(o3tl::make_unsigned(p2-fwd) == len) break; *p2 = 0; switch(osKind) {