diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-05-22 23:57:23 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-05-22 23:57:23 +0200 |
| commit | a2f333bfbdd187aa7463ae230f7a617f6bccb611 (patch) | |
| tree | 3e1470e5d3e519eb2fb300e1aaa6633b3c6f3330 /src | |
| parent | 6971f37274a6ef8a3e8fc58e9bd1bd92b1743a38 (diff) | |
Typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/analysis.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index e1bba37..90cfd70 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -76,7 +76,7 @@ DocumentLocal :: struct { parameter: bool, } -DeferredDepth :: 60 +DeferredDepth :: 100 AstContext :: struct { locals: map[int]map[string][dynamic]DocumentLocal, //locals all the way to the document position @@ -823,7 +823,7 @@ resolve_type_expression :: proc( bool, ) { //Try to prevent stack overflows and prevent indexing out of bounds. - if ast_context.deferred_count > DeferredDepth { + if ast_context.deferred_count >= DeferredDepth { return {}, false } |