mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 06:12:19 +00:00
- 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:
parent
ba0c7652eb
commit
ae44b936eb
2 changed files with 3 additions and 1 deletions
|
@ -1596,7 +1596,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DSBarInfo, ShowPop, SBarInfo_ShowPop)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int SBarInfo_GetProtrusion(DSBarInfo *self, float scale)
|
static int SBarInfo_GetProtrusion(DSBarInfo *self, double scale)
|
||||||
{
|
{
|
||||||
return self->_GetProtrusion(scale);
|
return self->_GetProtrusion(scale);
|
||||||
}
|
}
|
||||||
|
|
|
@ -590,7 +590,9 @@ struct DirectNativeDesc
|
||||||
template<typename T> struct is_valid<T&> { static const bool value = true; };
|
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<void> { static const bool value = true; };
|
||||||
template<> struct is_valid<int> { 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<double> { static const bool value = true; };
|
||||||
|
template<> struct is_valid<bool> { static const bool value = true; };
|
||||||
|
|
||||||
operator void *() const { return Ptr; }
|
operator void *() const { return Ptr; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue