Skip to content

Commit 11fc592

Browse files
committed
Corrected a few more given params
1 parent b9d8729 commit 11fc592

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/shared/src/main/scala-3/scodec/bits/BitVectorPlatform.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private[bits] object BitVectorFromDigits {
2626
${digitsToBitVectorMacro('digits, 'radix)}
2727
}
2828

29-
private def digitsToBitVectorMacro(digits: Expr[String], radix: Expr[Int])(given qctx: QuoteContext): Expr[BitVector] =
29+
private def digitsToBitVectorMacro(digits: Expr[String], radix: Expr[Int])(using qctx: QuoteContext): Expr[BitVector] =
3030
(digits, radix) match {
3131
case (Const(ds), Const(r)) =>
3232
if (r == 16) {
@@ -38,4 +38,4 @@ private[bits] object BitVectorFromDigits {
3838
case other =>
3939
'{digitsToBitVector($digits, $radix)}
4040
}
41-
}
41+
}

core/shared/src/main/scala-3/scodec/bits/ByteVectorPlatform.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private[bits] object ByteVectorFromDigits {
2626
${digitsToByteVectorMacro('digits, 'radix)}
2727
}
2828

29-
private def digitsToByteVectorMacro(digits: Expr[String], radix: Expr[Int])(given qctx: QuoteContext): Expr[ByteVector] =
29+
private def digitsToByteVectorMacro(digits: Expr[String], radix: Expr[Int])(using qctx: QuoteContext): Expr[ByteVector] =
3030
(digits, radix) match {
3131
case (Const(ds), Const(r)) =>
3232
if (r == 16) {
@@ -38,4 +38,4 @@ private[bits] object ByteVectorFromDigits {
3838
case other =>
3939
'{digitsToByteVector($digits, $radix)}
4040
}
41-
}
41+
}

0 commit comments

Comments
 (0)