commit: 9c76588e8bf8d6d7c3892b76d9d6e8c639f5508a
parent e3f20fb09dcd4452471db7762145b34fadab4c1e
Author: Peter De Wachter <pdewacht@gmail.com>
Date: Fri, 22 Mar 2024 19:55:53 +0100
Apply 0.0.6-7.debian:patches/warnings.patch
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/bulletmlrunnerimpl.cpp b/src/bulletmlrunnerimpl.cpp
@@ -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 (fabs(dirSpace1) < fabs(dirSpace2)) dirSpace = dirSpace1;
else dirSpace = dirSpace2;
auto_ptr_copy(changeDir_, new LinearFunc<int, double>
diff --git a/src/formula-variables.h b/src/formula-variables.h
@@ -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_