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
...@@ -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;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment