forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
einstein-2.0-64bit.patch
31 lines (28 loc) · 990 Bytes
/
einstein-2.0-64bit.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- einstein-2.0.orig/formatter.cpp
+++ einstein-2.0/formatter.cpp
@@ -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;