Fix only_i32 build.
This commit is contained in:
parent
46514bbc85
commit
a8f12cb212
@ -94,7 +94,7 @@ impl<'de> Visitor<'de> for DynamicVisitor {
|
||||
return Ok(Dynamic::from(v as INT));
|
||||
|
||||
#[cfg(feature = "only_i32")]
|
||||
if v <= INT::MAX as i32 {
|
||||
if v <= INT::MAX as u32 {
|
||||
return Ok(Dynamic::from(v as INT));
|
||||
}
|
||||
|
||||
|
@ -189,7 +189,7 @@ impl Serializer for &mut DynamicSerializer {
|
||||
return Ok(Dynamic::from(v as INT));
|
||||
|
||||
#[cfg(feature = "only_i32")]
|
||||
if v <= INT::MAX as i32 {
|
||||
if v <= INT::MAX as u32 {
|
||||
return Ok(Dynamic::from(v as INT));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user