diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-26 14:24:55 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-26 14:54:52 -0400 |
| commit | dcfd15a7f0ed5159afad47915a11d1dd8315cbe8 (patch) | |
| tree | f582f0697e06ae95d9962d4720ac3573a8be4be6 /src/parser.cpp | |
| parent | 631851f8b55b78363c9bc773230d9ee1e7122f5e (diff) | |
| download | zig-dcfd15a7f0ed5159afad47915a11d1dd8315cbe8.tar.gz zig-dcfd15a7f0ed5159afad47915a11d1dd8315cbe8.zip | |
the last number in a packed ptr is host int bytes
See #1121
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 8e6076c5e5..c57b1303e7 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1161,10 +1161,10 @@ static AstNode *ast_parse_pointer_type(ParseContext *pc, size_t *token_index, To *token_index += 1; Token *bit_offset_start_tok = ast_eat_token(pc, token_index, TokenIdIntLiteral); ast_eat_token(pc, token_index, TokenIdColon); - Token *bit_offset_end_tok = ast_eat_token(pc, token_index, TokenIdIntLiteral); + Token *host_int_bytes_tok = ast_eat_token(pc, token_index, TokenIdIntLiteral); node->data.pointer_type.bit_offset_start = token_bigint(bit_offset_start_tok); - node->data.pointer_type.bit_offset_end = token_bigint(bit_offset_end_tok); + node->data.pointer_type.host_int_bytes = token_bigint(host_int_bytes_tok); } ast_eat_token(pc, token_index, TokenIdRParen); token = &pc->tokens->at(*token_index); |
