diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 12:47:29 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 12:47:29 -0400 |
| commit | da4d07c6658f6b8189f98dfb051a7299fe45fb62 (patch) | |
| tree | a452e26675e6fad1aa9e6147dc9bf57d1e08e6ad /environment.c | |
| parent | 752ab8212c7556ed714d1272582e57180b50c5a6 (diff) | |
Fix up some bigint logic issues
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/environment.c b/environment.c index 411074ef..7f7d7e7f 100644 --- a/environment.c +++ b/environment.c @@ -411,7 +411,7 @@ env_t *for_scope(env_t *env, ast_t *ast) } return scope; } - case IntType: { + case BigIntType: { if (for_->vars) { if (for_->vars->next) code_err(for_->vars->next->ast, "This is too many variables for this loop"); @@ -495,7 +495,7 @@ binding_t *get_namespace_binding(env_t *env, ast_t *self, const char *name) switch (cls_type->tag) { case ArrayType: return NULL; case TableType: return NULL; - case BoolType: case IntType: case NumType: { + case BoolType: case IntType: case BigIntType: case NumType: { binding_t *b = get_binding(env, CORD_to_const_char_star(type_to_cord(cls_type))); assert(b); return get_binding(Match(b->type, TypeInfoType)->env, name); @@ -519,7 +519,6 @@ binding_t *get_namespace_binding(env_t *env, ast_t *self, const char *name) } default: break; } - code_err(self, "No such method!"); return NULL; } |
