mirror of
https://github.com/irmen/prog8.git
synced 2025-11-24 06:17:39 +00:00
better error when trying to use a const pointer (which is not supported yet)
This commit is contained in:
@@ -122,7 +122,6 @@ private fun convert(variable: StMemVar): IRStMemVar {
|
||||
|
||||
|
||||
private fun convert(constant: StConstant): IRStConstant {
|
||||
val dt = DataType.forDt(constant.dt)
|
||||
val scopedName = if('.' in constant.name) {
|
||||
constant.name
|
||||
} else {
|
||||
@@ -132,7 +131,7 @@ private fun convert(constant: StConstant): IRStConstant {
|
||||
constant.name
|
||||
}
|
||||
}
|
||||
return IRStConstant(scopedName, dt, constant.value)
|
||||
return IRStConstant(scopedName, constant.dt, constant.value)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user