From adfb8fde10fe15c2cb0398f2a7b55f6901144f7d Mon Sep 17 00:00:00 2001 From: CapRat Date: Sat, 21 Dec 2019 10:49:36 +0100 Subject: [PATCH] CrossPlatform and check Duplicates the substraction, but check is executed and its crossplatform (ssize_t isnt) --- distrho/extra/String.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrho/extra/String.hpp b/distrho/extra/String.hpp index 06989df4..aa500328 100644 --- a/distrho/extra/String.hpp +++ b/distrho/extra/String.hpp @@ -385,7 +385,7 @@ public: { const size_t ret(subStrBuf - fBuffer); - if (ret < 0) + if (subStrBuf - fBuffer < 0) { // should never happen! d_safe_assert("ret >= 0", __FILE__, __LINE__);