This commit is contained in:
Irmen de Jong 2024-11-15 02:52:21 +01:00
parent f784da2da6
commit 957c42bc1d
2 changed files with 4 additions and 4 deletions

View File

@ -350,12 +350,11 @@ class PtRange(type: DataType, position: Position) : PtExpression(type, position)
val fromLv = from as? PtNumber
val toLv = to as? PtNumber
val stepLv = step as? PtNumber
if(fromLv==null || toLv==null || stepLv==null)
if(fromLv==null || toLv==null)
return null
val fromVal = fromLv.number.toInt()
val toVal = toLv.number.toInt()
val stepVal = stepLv.number.toInt()
val stepVal = step.number.toInt()
return makeRange(fromVal, toVal, stepVal)
}
}

View File

@ -7,7 +7,8 @@ TODO
Future Things and Ideas
^^^^^^^^^^^^^^^^^^^^^^^
- implement const long to store a 32 bit signed integer value. (constants should be able to be long?)
- implement const long to store a 32 bit signed integer value. (constants should be able to be long?) -> const_long branch
- get rid of the BuiltinFunctionCall (and PtBuiltinFunctionCall) ast nodes distinction, just use 1 node type, they're mixed up now already anyways.
- something to reduce the need to use fully qualified names all the time. 'with' ? Or 'using <prefix>'?
- Why are blocks without an addr moved BEHIND a block with an address? That's done in the StatementReorderer.
- on the C64: make the floating point routines @banked so that basic can be permanently banked out even if you use floats? But this will crash when the call is done from program code at $a000+