Browse Source

CrossPlatform and check

Duplicates the substraction, but check is executed and its crossplatform (ssize_t isnt)
pull/210/head
CapRat GitHub 6 years ago
parent
commit
adfb8fde10
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/extra/String.hpp

+ 1
- 1
distrho/extra/String.hpp View File

@@ -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__);


Loading…
Cancel
Save