mirror of
https://github.com/irmen/prog8.git
synced 2026-04-19 20:16:51 +00:00
consolidate IR line parse function
This commit is contained in:
@@ -243,7 +243,7 @@ class IRCodeGen(
|
||||
val data = node.file.readBytes()
|
||||
.drop(node.offset?.toInt() ?: 0)
|
||||
.take(node.length?.toInt() ?: Int.MAX_VALUE)
|
||||
chunk += IRCodeInlineBinary(data.toByteArray())
|
||||
chunk += IRCodeInlineBinary(data.map { it.toUByte() })
|
||||
return chunk
|
||||
}
|
||||
is PtAddressOf,
|
||||
|
||||
Reference in New Issue
Block a user