Skip to content

Commit

Permalink
fixes nightlies; fixes incompatible types with csource_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Oct 30, 2023
1 parent 403e011 commit ae0d224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/nir/nirvm.nim
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ proc traverseObject(b: var Bytecode; t, offsetKey: TypeId) =
var offset = -1
for y in sons(b.m.types, x):
if b.m.types[y].kind == OffsetVal:
offset = b.m.lit.numbers[b.m.types[y].litId]
offset = int(b.m.lit.numbers[b.m.types[y].litId])
break
b.offsets.mgetOrPut(offsetKey, @[]).add (offset, x.firstSon)
of SizeVal:
size = b.m.lit.numbers[b.m.types[x].litId]
size = int(b.m.lit.numbers[b.m.types[x].litId])
of AlignVal:
align = b.m.lit.numbers[b.m.types[x].litId]
align = int(b.m.lit.numbers[b.m.types[x].litId])
of ObjectTy:
# inheritance
let impl = b.typeImpls.getOrDefault(b.m.lit.strings[b.m.types[x].litId])
Expand Down

0 comments on commit ae0d224

Please sign in to comment.