smpeg2-2.0.0-gcc6.patch 857 B

123456789101112131415161718192021222324
  1. gcc-6 is more strict WRT narrowing:
  2. error: narrowing conversion of ‘-1’ from ‘int’ to ‘unsigned int’ inside { } [-Wnarrowing]
  3. https://bugs.gentoo.org/594912
  4. diff --git a/audio/hufftable.cpp b/audio/hufftable.cpp
  5. index 6bc8e86..5414ae3 100644
  6. --- a/audio/hufftable.cpp
  7. +++ b/audio/hufftable.cpp
  8. @@ -552,3 +552,3 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
  9. {
  10. - { 0, 0-1, 0-1, 0, 0, htd33},
  11. + { 0, ~0u, ~0u, 0, 0, htd33},
  12. { 1, 2-1, 2-1, 0, 7,htd01},
  13. @@ -556,3 +556,3 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
  14. { 3, 3-1, 3-1, 0, 17,htd03},
  15. - { 4, 0-1, 0-1, 0, 0, htd33},
  16. + { 4, ~0u, ~0u, 0, 0, htd33},
  17. { 5, 4-1, 4-1, 0, 31,htd05},
  18. @@ -566,3 +566,3 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
  19. {13,16-1,16-1, 0,511,htd13},
  20. - {14, 0-1, 0-1, 0, 0, htd33},
  21. + {14,~0u, ~0u, 0, 0, htd33},
  22. {15,16-1,16-1, 0,511,htd15},