Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

Use three integer Value variants #165

Closed
wants to merge 2 commits into from
Closed

Conversation

MoSal
Copy link

@MoSal MoSal commented Nov 24, 2019

  • UnsignedInteger(u64): for all non-negative values.
  • SignedInteger(i64): for negative values that fit in a i64.
  • LargeSignedInteger(i128): for negative values that can't be represented by i64.

This should fix #140.

 UnsignedInteger(u64): for all non-negative values

 SignedInteger(i64): for negative values that fit in a i64.

 LargeSignedInteger(i128): for negative values that can't be represented
 by i64.

 This should fix pyfisch#140.

Signed-off-by: Mohammad AlSaleh <[email protected]>
Signed-off-by: Mohammad AlSaleh <[email protected]>
@pyfisch
Copy link
Owner

pyfisch commented Nov 25, 2019

Sorry this is not what I meant. I should have communicated this more clearly.

What I meant is to change the serialization for integer values to serialize to an u64 or i64 instead of an i128 if possible.

@pyfisch pyfisch closed this Nov 25, 2019
@pyfisch
Copy link
Owner

pyfisch commented Nov 25, 2019

I will make this change soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Value i128 serializer breaks cbor <=> json Value to Value conversions
2 participants