Minor, fix warnings on new stdlib API

In modules where allWarningsAsErrors is not yet enabled.
This commit is contained in:
Alexander Udalov
2021-04-09 17:20:07 +02:00
parent e89ab71bf8
commit 168d8b07a8
8 changed files with 14 additions and 14 deletions
@@ -484,7 +484,7 @@ private fun String.sanitize(quote: Char): String =
'\r' -> append("\\r")
'\t' -> append("\\t")
quote -> append("\\").append(quote)
else -> append(if (c.isISOControl()) "\\u%04x".format(c.toInt()) else c)
else -> append(if (c.isISOControl()) "\\u%04x".format(c.code) else c)
}
}
}