wok-6.x view par2/stuff/par2cmdline-0.4-gcc4.patch @ rev 19536
Up: docbook-xsl (1.79.1): conversion xml->man now works; udisks2 (2.1.8): now it auto-unmount and free /media/* folders before reboot/shutdown.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 01 04:42:13 2016 +0200 (2016-12-01) |
parents | |
children |
line source
1 Fix compilation with gcc-4.
3 Patch by Dirk-Jan Heijs.
5 http://bugs.gentoo.org/102391
6 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287904
8 --- par2cmdline-0.4/reedsolomon.cpp
9 +++ par2cmdline-0.4/reedsolomon.cpp
10 @@ -51,7 +51,7 @@
11 }
12 }
14 -bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
15 +template <> bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
16 {
17 inputcount = (u32)present.size();
19 @@ -80,7 +80,7 @@
20 return true;
21 }
23 -bool ReedSolomon<Galois8>::SetInput(u32 count)
24 +template <> bool ReedSolomon<Galois8>::SetInput(u32 count)
25 {
26 inputcount = count;
28 @@ -101,7 +101,7 @@
29 return true;
30 }
32 -bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
33 +template <> bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
34 {
35 // Look up the appropriate element in the RS matrix
36 Galois8 factor = leftmatrix[outputindex * (datapresent + datamissing) + inputindex];
37 @@ -189,7 +189,7 @@
39 // Set which of the source files are present and which are missing
40 // and compute the base values to use for the vandermonde matrix.
41 -bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
42 +template <> bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
43 {
44 inputcount = (u32)present.size();
46 @@ -233,7 +233,7 @@
48 // Record that the specified number of source files are all present
49 // and compute the base values to use for the vandermonde matrix.
50 -bool ReedSolomon<Galois16>::SetInput(u32 count)
51 +template <> bool ReedSolomon<Galois16>::SetInput(u32 count)
52 {
53 inputcount = count;
55 @@ -267,7 +267,7 @@
56 return true;
57 }
59 -bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
60 +template <> bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
61 {
62 // Look up the appropriate element in the RS matrix