We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52a237d commit 2e083d5Copy full SHA for 2e083d5
library/src/scala/quoted/Liftable.scala
@@ -241,7 +241,7 @@ object Liftable {
241
242
given as Liftable[BigInt] = new Liftable[BigInt] {
243
def toExpr(x: BigInt): given QuoteContext => Expr[BigInt] =
244
- '{ BigInt(${x.toString(Character.MAX_RADIX).toExpr}, ${Character.MAX_RADIX.toExpr}) }
+ '{ BigInt(${x.toByteArray.toExpr}) }
245
}
246
247
/** Lift a BigDecimal using the default MathContext */
0 commit comments