]> git.pld-linux.org Git - packages/einstein.git/commitdiff
- x86-64 buildfix
authorAdam Gołębiowski <adamg@pld-linux.org>
Fri, 2 Jan 2009 21:30:48 +0000 (21:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    einstein-gcc43.patch -> 1.2

einstein-gcc43.patch

index c9d91d05020c6d0b330872fd6c20fb208d3b8946..e0940fbec1b63216a3260b7c7c36e0275ce54f22 100644 (file)
  
  
  /// Returns length of wide character in utf-8
+--- einstein-2.0/formatter.cpp~        2005-08-14 04:40:58.000000000 +0200
++++ einstein-2.0/formatter.cpp 2009-01-02 22:29:07.209885720 +0100
+@@ -58,7 +58,7 @@
+             if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
+                     (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG))
+             {
+-                int no = (int)c.data;
++                long int no = (long int)c.data;
+                 args[no - 1] = c.type;
+             }
+         }
+@@ -123,7 +123,7 @@
+ std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
+ {
+     std::wstring s;
+-    int no;
++    long int no;
+     for (int i = 0; i < commandsCnt; i++) {
+         Command *cmd = &commands[i];
+@@ -135,8 +135,8 @@
+                 
+             case STRING_ARG:
+             case INT_ARG:
+-                no = (int)cmd->data - 1;
+-                if (no < (int)argValues.size())
++                no = (long int)cmd->data - 1;
++                if (no < (long int)argValues.size())
+                     s += argValues[no]->format(cmd);
+                 break;
This page took 0.092674 seconds and 4 git commands to generate.