Skip to content

Commit dbd1933

Browse files
committed
toString should be decodeToString
1 parent 98fbdcb commit dbd1933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Codex/src/main/java/org/operatorfoundation/codex/symbols/CallAny.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CallAny : Symbol {
2828
override fun toString(): String = "CallAny"
2929

3030
override fun decode(encodedValue: ByteArray): BigInteger {
31-
return charToValue[encodedValue.toString()]
31+
return charToValue[encodedValue.decodeToString()]
3232
?: throw IllegalArgumentException("CallAny, bad value: $encodedValue")
3333
}
3434

Codex/src/main/java/org/operatorfoundation/codex/symbols/CallLetter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class CallLetter : Symbol {
2323
override fun toString(): String = "CallLetter"
2424

2525
override fun decode(encodedValue: ByteArray): BigInteger {
26-
return charToValue[encodedValue.toString()]
26+
return charToValue[encodedValue.decodeToString()]
2727
?: throw IllegalArgumentException("CallLetter, bad value: $encodedValue")
2828
}
2929

0 commit comments

Comments
 (0)