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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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__); |
|
|
|
|