mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +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 {
|
match self {
|
||||||
PsbValueFixed::Number(n) => match n {
|
PsbValueFixed::Number(n) => match n {
|
||||||
PsbNumber::Integer(n) => Some(*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,
|
_ => None,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user