mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix of tan.
This commit is contained in:
@@ -372,7 +372,7 @@ macro sqrt(x) => $$sqrt(values::promote_int(x));
|
||||
macro tan(x)
|
||||
{
|
||||
var $Type = $typeof(x);
|
||||
$if (types.is_vector($Type)):
|
||||
$if (types::is_vector($Type)):
|
||||
return $$sin(x) / $$cos(x);
|
||||
$elif ($Type.typeid == float.typeid):
|
||||
return _tanf(x);
|
||||
|
||||
Reference in New Issue
Block a user