diff --git a/src/pdf.rs b/src/pdf.rs index 6cf7e5f..c45cea3 100644 --- a/src/pdf.rs +++ b/src/pdf.rs @@ -186,7 +186,7 @@ impl core::convert::TryFrom for Operation { fn to_f64(object: &Object) -> Option { match object { Object::Real(x) => Some(*x), - Object::Integer(x) => Some(*x as f64), + Object::Integer(x) => f64::try_from(i32::try_from(*x).ok()?).ok(), _ => None, } } diff --git a/src/space.rs b/src/space.rs index 11a7443..38146ba 100644 --- a/src/space.rs +++ b/src/space.rs @@ -84,8 +84,6 @@ where .filter(|e| e.applies_at(time)) .collect(); - eprintln!("{}, x{}", current_parts.len(), current_exceptions.len()); - if !current_exceptions.is_empty() { let exception = current_exceptions[0];