ds: Fix -Wswitch-default.

Tested with gcc 11.4.0.
This commit is contained in:
Tóth János 2025-02-11 10:43:38 +01:00
parent 5c205738c1
commit 80baaa72bf

View File

@ -1097,6 +1097,7 @@ static size_t stbds_siphash_bytes(void *p, size_t len, size_t seed)
case 2: data |= (d[1] << 8); // fall through
case 1: data |= d[0]; // fall through
case 0: break;
default: STBDS_ASSERT(0); // unreachable
}
v3 ^= data;
for (j=0; j < STBDS_SIPHASH_C_ROUNDS; ++j)