logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0001-libavutil-Remove-last-use-of-long-double.patch (953B)


  1. From ac61188ac8c177bceb48dd2b373caaf7a639f266 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Tue, 7 Sep 2021 01:39:36 -0700
  4. Subject: [PATCH] libavutil: Remove last use of long double
  5. The commit that introduced this file mentioned converting all long
  6. double to double, so presumably this one was just missed.
  7. ---
  8. libavutil/avsscanf.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/libavutil/avsscanf.c b/libavutil/avsscanf.c
  11. index b7f0f71c2d..31530dde67 100644
  12. --- a/libavutil/avsscanf.c
  13. +++ b/libavutil/avsscanf.c
  14. @@ -440,7 +440,7 @@ static double decfloat(FFFILE *f, int c, int bits, int emin, int sign, int pok)
  15. /* Assemble desired bits into floating point variable */
  16. for (y=i=0; i<LD_B1B_DIG; i++) {
  17. if ((a+i & MASK)==z) x[(z=(z+1 & MASK))-1] = 0;
  18. - y = 1000000000.0L * y + x[a+i & MASK];
  19. + y = 1000000000.0 * y + x[a+i & MASK];
  20. }
  21. y *= sign;
  22. --
  23. 2.32.0