mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-06 12:58:45 +08:00
Now psb as_i64 support float. Fix some re encoding image not works
This commit is contained in:
@@ -239,7 +239,9 @@ impl PsbValueFixed {
|
||||
match self {
|
||||
PsbValueFixed::Number(n) => match n {
|
||||
PsbNumber::Integer(n) => Some(*n),
|
||||
_ => None,
|
||||
PsbNumber::Double(n) if n.fract() == 0.0 => Some(*n as i64),
|
||||
PsbNumber::Float(n) if n.fract() == 0.0 => Some(*n as i64),
|
||||
_ => None
|
||||
},
|
||||
_ => None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user