mirror of
https://github.com/irmen/prog8.git
synced 2026-04-21 17:16:33 +00:00
libraries: add ==0 or !=0 to expressions that depend on implicit conversion from byte to bool
This commit is contained in:
@@ -9,8 +9,6 @@ import kotlin.math.truncate
|
||||
sealed class PtExpression(val type: DataType, position: Position) : PtNode(position) {
|
||||
|
||||
init {
|
||||
if(type==DataType.BOOL)
|
||||
throw IllegalArgumentException("bool should have become ubyte @$position")
|
||||
if(type==DataType.UNDEFINED) {
|
||||
@Suppress("LeakingThis")
|
||||
when(this) {
|
||||
|
||||
Reference in New Issue
Block a user