1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-15 22:57:12 +02:00

Prevent ambiguity errors during compilation caused by the new dispatch system under x64 builds.

This commit is contained in:
Sandu Liviu Catalin
2016-08-25 01:01:03 +03:00
parent d449247b5e
commit fae1e51c7b
11 changed files with 127 additions and 46 deletions

View File

@ -666,7 +666,7 @@ template < typename T > struct SqDynArgMulFn
*/
T operator () (std::nullptr_t) const
{
return (*mVar.value) * 0;
return (*mVar.value) * static_cast< SQInteger >(0);
}
};
@ -733,7 +733,7 @@ template < typename T > struct SqDynArgDivFn
*/
T operator () (std::nullptr_t) const
{
return (*mVar.value) / 0;
return (*mVar.value) / static_cast< SQInteger >(0);
}
};
@ -800,7 +800,7 @@ template < typename T > struct SqDynArgModFn
*/
T operator () (std::nullptr_t) const
{
return (*mVar.value) % 0;
return (*mVar.value) % static_cast< SQInteger >(0);
}
};