Skip to content

Commit af382ec

Browse files
committed
Code clean up
1 parent 95586a4 commit af382ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons-core/src/main/scala/com/avsystem/commons/serialization/json/JsonStringOutput.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ trait BaseJsonOutput {
4949
builder.append(str, s, str.length).append('"')
5050
}
5151

52-
protected final def toHex(nibble: Int): Char = (nibble + (if (nibble >= 10) 87 else 48)).toChar
52+
protected final def toHex(nibble: Int): Char = (nibble + (if (nibble >= 10) 'a' - 10 else '0')).toChar
5353
}
5454

5555
final class JsonStringOutput(builder: JStringBuilder, options: JsonOptions = JsonOptions.Default, depth: Int = 0)

0 commit comments

Comments
 (0)