fix style

This commit is contained in:
carpetoctopus 2026-04-30 17:27:59 +02:00 committed by GitHub
parent f295f9085b
commit 82821768ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,14 +46,14 @@ uint32_t get_modifier_mask_by_name(const char *name) {
const char *start = p;
const char *end = p;
while (*end && *end != '+') end++;
while (*end && *end != '+') {
end++;
}
size_t len = (size_t)(end - start);
for (int i = 0; i < (int)(sizeof(modifiers) / sizeof(modifiers[0])); ++i) {
if (strlen(modifiers[i].name) == len &&
strncasecmp(modifiers[i].name, start, len) == 0
) {
if (strlen(modifiers[i].name) == len && strncasecmp(modifiers[i].name, start, len) == 0) {
mod |= modifiers[i].mod;
break;
}