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:
committed by
Copybara-Service
parent
13490962a8
commit
e4dddea42a
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user