Permalink
Browse files

STARTREK: Fix Various Compiler Warnings.

  • Loading branch information...
digitall committed Aug 9, 2018
1 parent 7e4faf2 commit cb55775f608aae8df8b27ca73d8a54c539dae7f2
Showing with 8 additions and 2 deletions.
  1. +2 −2 engines/startrek/fixedint.h
  2. +6 −0 engines/startrek/space.h
@@ -34,8 +34,8 @@ namespace StarTrek {
*/
template<typename T, uint totalBits, uint decimalBits>
class TFixedInt : Common::Serializable {
const static int max = (1 << (totalBits - decimalBits - 1)) - 1;
const static int min = -max - 1;
static const int max = (1 << (totalBits - decimalBits - 1)) - 1;
static const int min = -max - 1;
T val;
View
@@ -73,7 +73,10 @@ struct TPoint {
return y;
else if (i == 2)
return z;
// Unknown Out of Range
assert(false);
return x;
}
T operator[](int i) const {
if (i == 0)
@@ -82,7 +85,10 @@ struct TPoint {
return y;
else if (i == 2)
return z;
// Unknown Out of Range
assert(false);
return x;
}
};

0 comments on commit cb55775

Please sign in to comment.