summaryrefslogtreecommitdiff
path: root/src/core/overflowsafe_type.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-06-17 19:01:45 +0000
committerrubidium <rubidium@openttd.org>2014-06-17 19:01:45 +0000
commitab964a6ceed04d64fc1568196ba7c2adfc6d0c49 (patch)
tree36fcb4e7efa2e7bc099cfa38fa5eb48e9c8284af /src/core/overflowsafe_type.hpp
parent37b1d36fb89b11b1bf0d5547fcebc542596e4e20 (diff)
downloadopenttd-ab964a6ceed04d64fc1568196ba7c2adfc6d0c49.tar.xz
(svn r26651) -Fix: make sure an abs is used that supports int64 when using abs on those variables
Diffstat (limited to 'src/core/overflowsafe_type.hpp')
-rw-r--r--src/core/overflowsafe_type.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/overflowsafe_type.hpp b/src/core/overflowsafe_type.hpp
index cfc245c6c..42ec98bd0 100644
--- a/src/core/overflowsafe_type.hpp
+++ b/src/core/overflowsafe_type.hpp
@@ -12,6 +12,7 @@
#ifndef OVERFLOWSAFE_TYPE_HPP
#define OVERFLOWSAFE_TYPE_HPP
+#include "math_func.hpp"
/**
* Overflow safe template for integers, i.e. integers that will never overflow