Avoid-ambiguity-in-div-invocation.patch 901 B

1234567891011121314151617181920212223242526272829303132
  1. From 1ea09653692efdd6443fb6770e8523bf6c9e49b9 Mon Sep 17 00:00:00 2001
  2. From: Fabio Berton <fabio.berton@ossystems.com.br>
  3. Date: Thu, 6 Oct 2016 11:54:07 -0300
  4. Subject: Avoid ambiguity in div invocation
  5. Organization: O.S. Systems Software LTDA.
  6. Patch from:
  7. https://anonscm.debian.org/cgit/pkg-multimedia/caps.git/commit/?id=9a99c225fb813ae69f146e3d90f7b47bdbd97708
  8. Upstream-Status: Pending
  9. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
  10. ---
  11. AutoFilter.cc | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/AutoFilter.cc b/AutoFilter.cc
  14. index fc087d0..bd6b12f 100644
  15. --- a/AutoFilter.cc
  16. +++ b/AutoFilter.cc
  17. @@ -69,7 +69,7 @@ AutoFilter::activate()
  18. void
  19. AutoFilter::cycle (uint frames)
  20. {
  21. - div_t qr = div (frames, blocksize);
  22. + div_t qr = div ((int)frames, (int)blocksize);
  23. int blocks = qr.quot;
  24. if (qr.rem) ++blocks;
  25. double over_blocks = 1./blocks;
  26. --
  27. 2.1.4