Fix control reaches end of non-void function in engine_forward.c
PiperOrigin-RevId: 627104708 Change-Id: I790b2bd22fd83ed616605a35f3e7268e28c73aa6
This commit is contained in:
committed by
Copybara-Service
parent
8ebc9ed2c8
commit
3ddf1b492a
@@ -258,17 +258,15 @@ static void clampVec(mjtNum* vec, const mjtNum* range, const mjtByte* limited, i
|
|||||||
|
|
||||||
// return number of dofs given joint type
|
// return number of dofs given joint type
|
||||||
static int jnt_dofnum(mjtJoint type) {
|
static int jnt_dofnum(mjtJoint type) {
|
||||||
switch (type) {
|
if (type == mjJNT_FREE) {
|
||||||
case mjJNT_HINGE:
|
|
||||||
case mjJNT_SLIDE:
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
case mjJNT_BALL:
|
|
||||||
return 3;
|
|
||||||
|
|
||||||
case mjJNT_FREE:
|
|
||||||
return 6;
|
return 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == mjJNT_BALL) {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user