pocketberserker/scodec-msgpack

Failure when encoding Longs between 1 << 31 and 1 <<32

aroberts opened this issue · 1 comments

Serialize.scala attempts to pack these into MUInt32 instances, but calls toInt on the value, which produces a negative number, not a valid input for MUInt32

fixed it locally by changing the branch to

 if (v < (1L << 32)) MUInt32(v)