Update years of packaging copyright.
[debian/mimetic.git] / debian / patches / const-correctness.patch
1 Origin: vendor
2 Bug-Debian: http://bugs.debian.org/583507
3 Forwarded: yes
4 Author: Berthold Stoeger <bs@bdf-net.com>
5 Reviewed-by: gregor herrmann <gregoa@debian.org>
6 Last-Update: 2010-05-29
7 Description:
8  Due to an error in the header file /usr/include/mimetic/body.h modern gcc versions (>=4.3)
9  refuse to compile perfectly valid programs using an encoder of libmimetic.
10  .
11  A less serious side effect of the bug is suboptimal performance.
12  .
13  The problem is fixed by the following patch which changes the code to the
14  version obviously intended by the author:
15
16 --- a/mimetic/body.h
17 +++ b/mimetic/body.h
18 @@ -137,7 +137,7 @@
19      if(codec.codeSizeMultiplier() > 1.0)
20          coded.reserve((size_type)::ceil(size() * codec.codeSizeMultiplier()));
21  
22 -    mimetic::code(begin(), end(), cc, back_inserter(coded) );
23 +    mimetic::code(begin(), end(), codec, back_inserter(coded) );
24      this->assign(coded);
25      return true;
26  }