From f80c3e89394237e7bd389844d2249400881e006a Mon Sep 17 00:00:00 2001 From: Davide Palladino Date: Mon, 9 Dec 2024 11:58:15 +0100 Subject: [PATCH] Applied fix --- .../src/main/kotlin/com/smeup/rpgparser/interpreter/coercing.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpgJavaInterpreter-core/src/main/kotlin/com/smeup/rpgparser/interpreter/coercing.kt b/rpgJavaInterpreter-core/src/main/kotlin/com/smeup/rpgparser/interpreter/coercing.kt index 99fa3eb30..d1ab3cedd 100644 --- a/rpgJavaInterpreter-core/src/main/kotlin/com/smeup/rpgparser/interpreter/coercing.kt +++ b/rpgJavaInterpreter-core/src/main/kotlin/com/smeup/rpgparser/interpreter/coercing.kt @@ -170,7 +170,7 @@ private fun coerceString(value: StringValue, type: Type): Value { if (value.isBlank()) { type.blank() } else { - DataStructValue(value.value) + DataStructValue(value.value.padEnd(6)) } } is CharacterType -> {