Skip to content
Snippets Groups Projects
Commit 476a3d69 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Applied Stefan's fix regarding missing 'break' statements in units.c

parent f733b66d
No related branches found
No related tags found
No related merge requests found
...@@ -320,9 +320,15 @@ void units_get_base_unit_exponants_array(float baseUnitsExp[5], ...@@ -320,9 +320,15 @@ void units_get_base_unit_exponants_array(float baseUnitsExp[5],
case UNIT_CONV_VOLUME: case UNIT_CONV_VOLUME:
baseUnitsExp[UNIT_LENGTH] = 3.f; baseUnitsExp[UNIT_LENGTH] = 3.f;
break;
case UNIT_CONV_INV_VOLUME: case UNIT_CONV_INV_VOLUME:
baseUnitsExp[UNIT_LENGTH] = -3.f; baseUnitsExp[UNIT_LENGTH] = -3.f;
break;
default:
error("Invalid choice of pre-defined units");
break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment