diff options
author | Oxore <oxore@protonmail.com> | 2023-05-22 21:37:47 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-22 21:40:56 +0300 |
commit | 8de6e3253b614f2b751cb760b489f487b927d1c5 (patch) | |
tree | 07b3db01ec39cdc72f83d8206d05ff47551f8da8 /main.cpp | |
parent | cdabbbcfa0717b2253f79e04eb6ac14996cf9dca (diff) |
Fix Clang errors and warnings
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -459,7 +459,7 @@ static int M68kDisasmAll(FILE *input_stream, FILE *output_stream, const Settings static bool IsValidFeature(const char *feature) { - constexpr size_t sizeof_no_prefix = strlen("no-"); + constexpr size_t sizeof_no_prefix = sizeof("no-")-1; if (0 == memcmp(feature, "no-", sizeof_no_prefix)) { feature += sizeof_no_prefix; } @@ -484,7 +484,7 @@ static bool IsValidFeature(const char *feature) static void ApplyFeature(Settings& s, const char *feature) { bool disable{}; - constexpr size_t sizeof_no_prefix = strlen("no-"); + constexpr size_t sizeof_no_prefix = sizeof("no-")-1; if (0 == memcmp(feature, "no-", sizeof_no_prefix)) { disable = true; feature += sizeof_no_prefix; |