From 0b34a5dd39e177ba99cd21b639d67ac8123b8458 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 10 Nov 2018 12:51:57 +0300 Subject: tdf#120703 PVS: silence a V555 V555 The expression '(curpos - bufpos) > 0' will work as 'curpos != bufpos'. Change-Id: I432c10c9c5ecc99293ec3f03f6e1a660e1c47e28 Reviewed-on: https://gerrit.libreoffice.org/63236 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sal/osl/w32/file.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx index a5e6c640b8ed..1bc898eba4e4 100644 --- a/sal/osl/w32/file.cxx +++ b/sal/osl/w32/file.cxx @@ -475,7 +475,7 @@ oslFileError FileHandle_Impl::readLineAt( if (curpos >= m_buflen) { /* buffer examined */ - if ((curpos - bufpos) > 0) + if (curpos > bufpos) // actually, curpos can't become less than bufpos, so != could do { /* flush buffer to sequence */ result = writeSequence_Impl( -- cgit