Make switch statements over enums in engine source use a typed expression to support compiler checking of full coverage.

PiperOrigin-RevId: 556854229
Change-Id: I36a5d146d776e10b946e2f9b51ace4ef3866471b
This commit is contained in:
Yuval Tassa
2023-08-14 11:16:53 -07:00
committed by Copybara-Service
parent 13490962a8
commit e4dddea42a
15 changed files with 71 additions and 51 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ float mjv_rbound(const mjvGeom* geom) {
// compute rbound according to type
const float* s = geom->size;
switch (geom->type) {
switch ((mjtMouse) geom->type) {
case mjGEOM_SPHERE:
return s[0];