Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
476a3d69
Commit
476a3d69
authored
Oct 28, 2016
by
Matthieu Schaller
Browse files
Applied Stefan's fix regarding missing 'break' statements in units.c
parent
f733b66d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/units.c
View file @
476a3d69
...
@@ -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
;
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment