Developed fix and submitted upstream:
https://github.com/sdispater/pendulum/pull/842

** Description changed:

  pendulum 3.0.0-1 fails to build on armhf:
  
  error: this arithmetic operation will overflow
    --> src/helpers.rs:59:20
     |
  59 |         seconds += ((146_097 - 10957) * SECS_PER_DAY as usize) as isize;
     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt 
to compute `135140_usize * 86400_usize`, which would overflow
     |
     = note: `#[deny(arithmetic_overflow)]` on by default
  
  (146_097 - 10957) * SECS_PER_DAY = 11676096000 which does not fit into
  32 bit integers.
  
- Upstream bug:
- https://bugs.launchpad.net/ubuntu/+source/pendulum/+bug/2079029
+ Upstream bug: https://github.com/sdispater/pendulum/issues/784

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2079029

Title:
  pendulum 3.0.0-1 fails to build on armhf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pendulum/+bug/2079029/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to