diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 19:53:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 19:53:09 -0400 |
| commit | 337aa911a9027602d47cd56ddbfcde0230a48943 (patch) | |
| tree | daf93f7d7972a672ee6a815702c05ce05913fb8b /environment.c | |
| parent | 6d7a359f8f7757b1e23fa7c0feaf535541dcc84a (diff) | |
Auto promote to C String from Text
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c index 01c30946..d1639368 100644 --- a/environment.c +++ b/environment.c @@ -33,7 +33,7 @@ env_t *new_compilation_unit(CORD *libname) } global_vars[] = { {"say", {.code="say", .type=Type(FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE, .next=new(arg_t, .name="newline", .type=Type(BoolType), .default_val=FakeAST(Bool, true))), .ret=Type(VoidType))}}, - {"fail", {.code="fail", .type=Type(FunctionType, .args=new(arg_t, .name="message", .type=TEXT_TYPE), .ret=Type(AbortType))}}, + {"fail", {.code="fail", .type=Type(FunctionType, .args=new(arg_t, .name="message", .type=Type(CStringType)), .ret=Type(AbortType))}}, {"USE_COLOR", {.code="USE_COLOR", .type=Type(BoolType)}}, }; |
