Skip to content

Commit

Permalink
compiler: fix code generation for implicit == operator of struct types
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 12, 2025
1 parent efe64e3 commit e2bf3de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/julec/obj/cxx/object.jule
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,11 @@ impl ObjectCoder {
mut fIdent := strings::Builder{}
fIdent.Grow(len(f.Decl.Ident))
identCoder.field(fIdent, f.Decl)
lmodel += str(unsafe { fIdent.Buf() })
rmodel += str(unsafe { fIdent.Buf() })
lmodel += fIdent.Str()
rmodel += fIdent.Str()
self.ec._unsafeBinary(self.Buf, lmodel, rmodel, f.Type, f.Type, token::Id.Eqs, token::Kind.Eqs)
lmodel = lmodel[:len(lmodel)-fIdent.Len()]
rmodel = lmodel[:len(rmodel)-fIdent.Len()]
rmodel = rmodel[:len(rmodel)-fIdent.Len()]
}
self.doneIndent()
if !writed {
Expand Down

0 comments on commit e2bf3de

Please sign in to comment.