diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 05:01:21 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-04 05:01:21 -0400 |
| commit | 1092185c843d77b5535d44956c1db1aa484d4b74 (patch) | |
| tree | b145a4ba2775c66a3796a7ca9fb98121da1b59a3 /environment.c | |
| parent | 85f1210b1a0177c68d63984024f0c461173fdd92 (diff) | |
Improve codegen by making test() even more concise
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/environment.c b/environment.c index 6477039c..eb456030 100644 --- a/environment.c +++ b/environment.c @@ -180,8 +180,8 @@ env_t *new_compilation_unit(CORD *libname) {"isnan", "Num$isnan", "func(n:Num)->Bool"}, C(2_SQRTPI), C(E), C(PI_2), C(2_PI), C(1_PI), C(LN10), C(LN2), C(LOG2E), C(PI), C(PI_4), C(SQRT2), C(SQRT1_2), - {"INF", "INFINITY", "Num"}, - {"TAU", "(2.*M_PI)", "Num"}, + {"INF", "(Num_t)(INFINITY)", "Num"}, + {"TAU", "(Num_t)(2.*M_PI)", "Num"}, {"random", "Num$random", "func()->Num"}, {"mix", "Num$mix", "func(amount:Num, x:Num, y:Num)->Num"}, {"from_text", "Num$from_text", "func(text:Text, the_rest=!&Text)->Num"}, |
