wok-current view par2/stuff/par2cmdline-0.4-gcc4.patch @ rev 18287
yuyo-gtk-theme: update version
author | yuripourre |
---|---|
date | Tue Aug 11 10:05:04 2015 -0400 (2015-08-11) |
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