ionspin / kotlin-multiplatform-bignum

A Kotlin multiplatform library for arbitrary precision arithmetics
Apache License 2.0
339 stars 40 forks source link

Wrong ByteArray representation for BitInteger(0) #280

Closed TemMax closed 5 months ago

TemMax commented 5 months ago

Describe the bug java.math.BigInteger#toByteArray returns ByteArray(0) (size == 1) when bignum.BigInteger#toByteArray returns an empty ByteArray.

Platform

ionspin commented 5 months ago

Thanks for reporting, fix shoulde be available in snapshot soon.