summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-24 22:25:23 +0000
committersmatz <smatz@openttd.org>2009-02-24 22:25:23 +0000
commit3707a11e5eafec7674c7418d0221cca304e01685 (patch)
tree2a7fbbbb5b49230ad93df79d2e2988128b932842 /src/core
parentd96b151859ca35dae1da8bc6e223e18322ddd455 (diff)
downloadopenttd-3707a11e5eafec7674c7418d0221cca304e01685.tar.xz
(svn r15571) -Fix: incorrect use of memset
Diffstat (limited to 'src/core')
-rw-r--r--src/core/mem_func.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mem_func.hpp b/src/core/mem_func.hpp
index e56ad365d..04248e947 100644
--- a/src/core/mem_func.hpp
+++ b/src/core/mem_func.hpp
@@ -42,7 +42,7 @@ static FORCEINLINE void MemMoveT(T *destination, const T *source, uint num = 1)
* @param num number of items to be set (!not number of bytes!)
*/
template <typename T>
-static FORCEINLINE void MemSetT(T *ptr, int value, uint num = 1)
+static FORCEINLINE void MemSetT(T *ptr, byte value, uint num = 1)
{
memset(ptr, value, num * sizeof(T));
}