]> git.pld-linux.org Git - packages/einstein.git/blob - einstein-gcc43.patch
- +pl
[packages/einstein.git] / einstein-gcc43.patch
1 --- einstein-2.0/convert.h~     2005-08-14 04:40:58.000000000 +0200
2 +++ einstein-2.0/convert.h      2009-01-02 14:15:08.000000000 +0100
3 @@ -5,6 +5,7 @@
4  #include <iostream>
5  #include <sstream>
6  #include <string>
7 +#include <typeinfo>
8  
9  #include "exceptions.h"
10  #include "unicode.h"
11 --- einstein-2.0/unicode.cpp~   2005-08-14 04:40:58.000000000 +0200
12 +++ einstein-2.0/unicode.cpp    2009-01-02 14:16:51.000000000 +0100
13 @@ -5,6 +5,7 @@
14  #endif
15  #include "unicode.h"
16  #include "exceptions.h"
17 +#include <cstring>
18  
19  
20  /// Returns length of wide character in utf-8
21 --- einstein-2.0/formatter.cpp~ 2005-08-14 04:40:58.000000000 +0200
22 +++ einstein-2.0/formatter.cpp  2009-01-02 22:29:07.209885720 +0100
23 @@ -58,7 +58,7 @@
24              if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
25                      (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG))
26              {
27 -                int no = (int)c.data;
28 +                long int no = (long int)c.data;
29                  args[no - 1] = c.type;
30              }
31          }
32 @@ -123,7 +123,7 @@
33  std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
34  {
35      std::wstring s;
36 -    int no;
37 +    long int no;
38  
39      for (int i = 0; i < commandsCnt; i++) {
40          Command *cmd = &commands[i];
41 @@ -135,8 +135,8 @@
42                  
43              case STRING_ARG:
44              case INT_ARG:
45 -                no = (int)cmd->data - 1;
46 -                if (no < (int)argValues.size())
47 +                no = (long int)cmd->data - 1;
48 +                if (no < (long int)argValues.size())
49                      s += argValues[no]->format(cmd);
50                  break;
51  
This page took 0.117203 seconds and 3 git commands to generate.