Fix exhaustive switches #1824

Open
NSProgrammer wants to merge 1 commits from NSProgrammer/export-D77051152 into main

View File

@@ -72,10 +72,10 @@ inline bool operator==(const YGValue& lhs, const YGValue& rhs) {
case YGUnitPoint: case YGUnitPoint:
case YGUnitPercent: case YGUnitPercent:
return lhs.value == rhs.value; return lhs.value == rhs.value;
} default:
return false; return false;
} }
}
inline bool operator!=(const YGValue& lhs, const YGValue& rhs) { inline bool operator!=(const YGValue& lhs, const YGValue& rhs) {
return !(lhs == rhs); return !(lhs == rhs);