labts fixes #31

Merged
gc1523 merged 5 commits from labts-fixes into runtime-errors 2025-02-27 21:58:02 +00:00
3 changed files with 12 additions and 22 deletions
Showing only changes of commit edce236158 - Show all commits

View File

@@ -180,8 +180,8 @@ object typeChecker {
microWacc.Builtin.Read,
List(
destTy match {
case KnownType.Int => "%d".toMicroWaccCharArray
case KnownType.Char | _ => "%c".toMicroWaccCharArray
case KnownType.Int => " %d".toMicroWaccCharArray
case KnownType.Char | _ => " %c".toMicroWaccCharArray
},
destTyped
)