aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Common.h
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-08-21 16:56:11 +0200
committerjackpoz <giacomopoz@gmail.com>2014-08-23 19:56:41 +0200
commit7fe7f30521503559dc8aee9f3127e11111f8ccc4 (patch)
treef4a75f563e89957d43cef93253bfc300ecf57339 /src/server/shared/Common.h
parentf5f9df0483fbf847eb9ee4e6ec4ecc6cf66d3a47 (diff)
Core/Misc: Fix some -Wconversion warnings
Diffstat (limited to 'src/server/shared/Common.h')
-rw-r--r--src/server/shared/Common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/Common.h b/src/server/shared/Common.h
index ab268835046..27e6cb63514 100644
--- a/src/server/shared/Common.h
+++ b/src/server/shared/Common.h
@@ -26,7 +26,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <math.h>
+#include <cmath>
#include <errno.h>
#include <signal.h>
#include <assert.h>
@@ -136,7 +136,7 @@ typedef std::vector<std::string> StringVector;
#endif
#ifndef M_PI
-#define M_PI 3.14159265358979323846f
+#define M_PI 3.14159265358979323846
#endif
#define MAX_QUERY_LEN 32*1024