- add bool and unsigned int to the allowed types

- fix one case where floats were used (the JIT always calls with doubles)
This commit is contained in:
Magnus Norddahl 2018-12-03 23:09:23 +01:00
parent ba0c7652eb
commit ae44b936eb
2 changed files with 3 additions and 1 deletions

View file

@ -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);
}

View file

@ -590,7 +590,9 @@ struct DirectNativeDesc
template<typename T> struct is_valid<T&> { static const bool value = true; };
template<> struct is_valid<void> { static const bool value = true; };
template<> struct is_valid<int> { static const bool value = true; };
template<> struct is_valid<unsigned int> { static const bool value = true; };
template<> struct is_valid<double> { static const bool value = true; };
template<> struct is_valid<bool> { static const bool value = true; };
operator void *() const { return Ptr; }