Commit 9abc9380 authored by Kiste's avatar Kiste
Browse files

debian warnings.patch

parent b7a8c75f
......@@ -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>
......
......@@ -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_
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