mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-22 08:41:00 +00:00
Fixed MSVC C4459 in tanT when user code has a global named cs. (#453)
This commit is contained in:
committed by
GitHub
parent
eced7c86c0
commit
36b2b6943f
@@ -381,9 +381,9 @@ namespace bx
|
||||
template<typename Ty>
|
||||
inline BX_CONSTEXPR_FUNC Ty tanT(Ty _a)
|
||||
{
|
||||
const Ty sn = sin(_a);
|
||||
const Ty cs = cos(_a);
|
||||
const Ty result = sn / cs;
|
||||
const Ty tmp0 = sin(_a);
|
||||
const Ty tmp1 = cos(_a);
|
||||
const Ty result = tmp0 / tmp1;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user