Skip to content

Commit

Permalink
fix bits size
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypfau committed Feb 12, 2024
1 parent a25c1d0 commit 0311a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/generator/FuncCodeGen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public class FuncCodeGen(
fun storeField(fieldVar: String, expr: TlbTypeExpression, primitiveType: TlbPrimitiveType) {
val isInteger = expr.isInt
val size = expr.size
val l = if (size.isFixed()) size.minSize else -1
val l = if (size.isFixed()) size.minBits else -1
val action = buildString {
when (primitiveType) {
TlbPrimitiveType.BITSTRING,
Expand Down

0 comments on commit 0311a1c

Please sign in to comment.