mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Catch macro infinite recursion. Fix of tan function.
This commit is contained in:
@@ -377,7 +377,7 @@ macro tan(x)
|
||||
$elif ($Type.typeid == float.typeid):
|
||||
return _tanf(x);
|
||||
$else:
|
||||
return tan(x);
|
||||
return _tan(x);
|
||||
$endif;
|
||||
}
|
||||
|
||||
@@ -691,5 +691,5 @@ extern fn double _atan2(double, double) @extern("atan2");
|
||||
extern fn float _atan2f(float, float) @extern("atan2f");
|
||||
extern fn void _sincos(double, double*) @extern("sincos");
|
||||
extern fn void _sincosf(float, float*) @extern("sincosf");
|
||||
extern fn void _tan(double x, double y) @extern("tan");
|
||||
extern fn void _tanf(double x, double y) @extern("tanf");
|
||||
extern fn double _tan(double x) @extern("tan");
|
||||
extern fn float _tanf(float x) @extern("tanf");
|
||||
Reference in New Issue
Block a user