From ae44b936eb76266068a5eea00d863791a9c0e7c2 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 3 Dec 2018 23:09:23 +0100 Subject: [PATCH] - add bool and unsigned int to the allowed types - fix one case where floats were used (the JIT always calls with doubles) --- src/g_statusbar/sbarinfo.cpp | 2 +- src/scripting/vm/vm.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/g_statusbar/sbarinfo.cpp b/src/g_statusbar/sbarinfo.cpp index d652ced34..efb0f9708 100644 --- a/src/g_statusbar/sbarinfo.cpp +++ b/src/g_statusbar/sbarinfo.cpp @@ -1596,7 +1596,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DSBarInfo, ShowPop, SBarInfo_ShowPop) return 0; } -static int SBarInfo_GetProtrusion(DSBarInfo *self, float scale) +static int SBarInfo_GetProtrusion(DSBarInfo *self, double scale) { return self->_GetProtrusion(scale); } diff --git a/src/scripting/vm/vm.h b/src/scripting/vm/vm.h index 481705345..e451cb80c 100644 --- a/src/scripting/vm/vm.h +++ b/src/scripting/vm/vm.h @@ -590,7 +590,9 @@ struct DirectNativeDesc template struct is_valid { static const bool value = true; }; template<> struct is_valid { static const bool value = true; }; template<> struct is_valid { static const bool value = true; }; + template<> struct is_valid { static const bool value = true; }; template<> struct is_valid { static const bool value = true; }; + template<> struct is_valid { static const bool value = true; }; operator void *() const { return Ptr; }