Eliminate a PVS-studio false positive warning

This commit is contained in:
Henrik Rydgård 2025-02-04 10:11:27 -06:00
parent 350882d592
commit dd4c8617e2

View file

@ -232,7 +232,7 @@ static inline int GetNumVectorElements(VectorSize sz) {
case V_Pair: return 2;
case V_Triple: return 3;
case V_Quad: return 4;
default: return 0;
default: return 1; // let's not confuse static analyzers more than necessary. Anyway, in reality this is unreachable.
}
}