Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiste
libbulletml
Commits
9abc9380
Commit
9abc9380
authored
Dec 12, 2017
by
Kiste
Browse files
debian warnings.patch
parent
b7a8c75f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bulletmlrunnerimpl.cpp
View file @
9abc9380
...
...
@@ -467,7 +467,7 @@ void BulletMLRunnerImpl::calcChangeDirection(double direction, int term,
double
dirSpace2
;
if
(
dirSpace1
>
0
)
dirSpace2
=
dirSpace1
-
360
;
else
dirSpace2
=
dirSpace1
+
360
;
if
(
abs
(
dirSpace1
)
<
abs
(
dirSpace2
))
dirSpace
=
dirSpace1
;
if
(
f
abs
(
dirSpace1
)
<
f
abs
(
dirSpace2
))
dirSpace
=
dirSpace1
;
else
dirSpace
=
dirSpace2
;
auto_ptr_copy
(
changeDir_
,
new
LinearFunc
<
int
,
double
>
...
...
src/formula-variables.h
View file @
9abc9380
...
...
@@ -33,7 +33,7 @@ public:
template
<
typename
Val_
>
class
Param
:
public
AbstractNumber
<
Val_
>
{
public:
DECLSPEC
explicit
Param
(
int
id
)
:
id_
(
id
)
{}
DECLSPEC
explicit
Param
(
unsigned
int
id
)
:
id_
(
id
)
{}
DECLSPEC
virtual
Val_
value
()
const
{
if
(
Variables
::
parameters
&&
id_
<
Variables
::
parameters
->
size
())
{
return
(
*
Variables
::
parameters
)[
id_
];
...
...
@@ -44,7 +44,7 @@ public:
}
private:
int
id_
;
unsigned
int
id_
;
};
#endif // ! FORMULA_VARIABLE_H_
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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