diff options
Diffstat (limited to 'src/parser/parser_core.c')
| -rw-r--r-- | src/parser/parser_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser/parser_core.c b/src/parser/parser_core.c index acab268..3c2805c 100644 --- a/src/parser/parser_core.c +++ b/src/parser/parser_core.c @@ -591,8 +591,8 @@ static ASTNode *generate_derive_impls(ParserContext *ctx, ASTNode *strct, char * else if (fdef && fdef->type == NODE_STRUCT) { // Struct field: use _eq function, pass addresses - // self.field is L-value, other.field is L-value (auto-deref from pointer) - // We need addresses of them: &self.field, &other.field + // self.field is L-value, other.field is L-value (auto-deref from + // pointer) We need addresses of them: &self.field, &other.field sprintf(cmp, "%s__eq(&self.%s, &other.%s)", ft, fn, fn); } else |
