diff --git a/zio-json/shared/src/main/scala/zio/json/internal/lexer.scala b/zio-json/shared/src/main/scala/zio/json/internal/lexer.scala index f0a6ace3..738363d6 100644 --- a/zio-json/shared/src/main/scala/zio/json/internal/lexer.scala +++ b/zio-json/shared/src/main/scala/zio/json/internal/lexer.scala @@ -439,9 +439,9 @@ final class StringMatrix(val xs: Array[String], aliases: Array[(String, Int)] = } m } - private val resolve: Array[Int] = Array.tabulate[Int](width) { string => - if (string < xs.length) string - else aliases(string - xs.length)._2 + private val resolve: Array[Byte] = Array.tabulate[Byte](width) { string => + if (string < xs.length) string.toByte + else aliases(string - xs.length)._2.toByte } // must be called with increasing `char` (starting with bitset obtained from a