1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Math.cpp

This commit is contained in:
Sandu Liviu Catalin 2021-02-01 00:39:24 +02:00
parent 533b058e58
commit 602f82b26e

View File

@ -15,7 +15,7 @@ static SQInteger SqDiv(HSQUIRRELVM vm)
{
// The return type of the function
#ifdef _SQ64
typedef std::lldiv_t DivT;
typedef typename std::conditional< std::is_same< SQInteger, signed long int >::value, std::ldiv_t, std::lldiv_t >::type DivT;
#else
typedef std::div_t DivT;
#endif // _SQ64