Skip to content

Commit 85c9163

Browse files
committed
#25 Fix a PR suggestion - thanks @coderabbitai!
1 parent 1f474e1 commit 85c9163

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cobol-parser/src/main/scala/za/co/absa/cobrix/cobol/parser/decoders/DecoderSelector.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ object DecoderSelector {
6767
val decoder = dataType match {
6868
case alphaNumeric: AlphaNumeric => getStringDecoder(alphaNumeric.enc.getOrElse(EBCDIC), stringTrimmingPolicy, ebcdicCodePage, asciiCharset, isUtf16BigEndian, improvedNullDetection)
6969
case decimalType: Decimal => getDecimalDecoder(decimalType, floatingPointFormat, strictSignOverpunch, improvedNullDetection)
70-
case integralType: Integral if isDisplayAlwaysString => getDisplayDecoderAsString(integralType, improvedNullDetection, strictIntegralPrecision)
70+
case integralType: Integral if isDisplayAlwaysString => getDisplayDecoderAsString(integralType, improvedNullDetection, strictSignOverpunch)
7171
case integralType: Integral => getIntegralDecoder(integralType, strictSignOverpunch, improvedNullDetection, strictIntegralPrecision)
7272
case _ => throw new IllegalStateException("Unknown AST object")
7373
}
@@ -267,11 +267,11 @@ object DecoderSelector {
267267

268268
if (isEbcdic) {
269269
bytes: Array[Byte] => {
270-
StringDecoders.decodeEbcdicNumber(bytes, !isSigned, allowedSignOverpunch,improvedNullDetection)
270+
StringDecoders.decodeEbcdicNumber(bytes, !isSigned, allowedSignOverpunch, improvedNullDetection)
271271
}
272272
} else {
273273
bytes: Array[Byte] => {
274-
StringDecoders.decodeAsciiNumber(bytes, !isSigned, allowedSignOverpunch,improvedNullDetection)
274+
StringDecoders.decodeAsciiNumber(bytes, !isSigned, allowedSignOverpunch, improvedNullDetection)
275275
}
276276
}
277277
}

0 commit comments

Comments
 (0)