feat: use BigInt in constant integer

This commit is contained in:
rvcas 2023-02-09 09:46:42 -05:00
parent ec58279424
commit cfbe5fd3cc
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ use std::{
rc::Rc,
};
use num_bigint::BigInt;
use serde::{
self,
de::{self, Deserialize, Deserializer, MapAccess, Visitor},
@ -228,7 +229,7 @@ where
#[derive(Debug, Clone, PartialEq)]
pub enum Constant {
// tag: 0
Integer(i128),
Integer(BigInt),
// tag: 1
ByteString(Vec<u8>),
// tag: 2