diff options
| author | Baitinq <[email protected]> | 2025-06-06 00:36:46 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-06-06 00:37:15 +0200 |
| commit | d512b33da51e2a94690cf145d05479d6ec4860f6 (patch) | |
| tree | 25718d478612ae98cc64943f2236ac6b7e873cf0 /src/bootstrap/tokenizer.src | |
| parent | Bootstrap: Codegen: Create bindings for llvm types (diff) | |
| download | pry-lang-d512b33da51e2a94690cf145d05479d6ec4860f6.tar.gz pry-lang-d512b33da51e2a94690cf145d05479d6ec4860f6.tar.bz2 pry-lang-d512b33da51e2a94690cf145d05479d6ec4860f6.zip | |
Feature: Typecheck on struct field assignment
Diffstat (limited to 'src/bootstrap/tokenizer.src')
| -rw-r--r-- | src/bootstrap/tokenizer.src | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/tokenizer.src b/src/bootstrap/tokenizer.src index 814a377..70ec1bb 100644 --- a/src/bootstrap/tokenizer.src +++ b/src/bootstrap/tokenizer.src @@ -517,7 +517,7 @@ let tokenizer_init = (alloc: *arena, file: slice) => *tokenizer { let t = cast(*tokenizer, arena_alloc(alloc, sizeof(tokenizer))); (*t).arena = alloc; (*t).offset = 0; - (*t).buf = file.data; + (*t).buf = cast(*i8, file.data); (*t).buf_len = file.data_len; println("File size: %d", (*t).buf_len); @@ -547,7 +547,7 @@ let tokenizer_tokenize = (t: *tokenizer) => slice { print_tokens(tokens, tokens_len); let res = slice{}; - res.data = tokens; + res.data = cast(*void, tokens); res.data_len = tokens_len; return res; }; |