Skip to content

Commit

Permalink
Merge pull request #50 from Princess-org/weak_ref
Browse files Browse the repository at this point in the history
Fix weak references
  • Loading branch information
Victorious3 authored May 1, 2024
2 parents b54626d + 192e13a commit cf0b819
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 340 deletions.
2 changes: 1 addition & 1 deletion src/codegen.pr
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def type_to_str(tpe: &typechecking::Type) -> Str {
ret = "i8*"
}
case typechecking::TypeKind::REFERENCE, typechecking::TypeKind::WEAK_REF
ret = "{i64*, "
ret = "{{i64, i64}*, "
if tpe.tpe and tpe.tpe.kind != typechecking::TypeKind::STRUCTURAL {
ret += type_to_str(tpe.tpe)
ret += '*'
Expand Down
Loading

0 comments on commit cf0b819

Please sign in to comment.