Browse Source

convert v3_tuid_match into a bool, so return value is more clear

Signed-off-by: falkTX <falktx@falktx.com>
pull/292/head
falkTX 4 years ago
parent
commit
0ac10abffd
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      distrho/src/travesty/base.h

+ 3
- 2
distrho/src/travesty/base.h View File

@@ -16,6 +16,7 @@


#pragma once #pragma once


#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>


@@ -37,10 +38,10 @@ typedef uint32_t v3_param_id;


typedef uint8_t v3_tuid[16]; typedef uint8_t v3_tuid[16];


inline static int
inline static bool
v3_tuid_match(const v3_tuid a, const v3_tuid b) v3_tuid_match(const v3_tuid a, const v3_tuid b)
{ {
return !memcmp(a, b, sizeof(v3_tuid));
return memcmp(a, b, sizeof(v3_tuid)) == 0;
} }


#if defined(_WIN32) #if defined(_WIN32)


Loading…
Cancel
Save