Added
Link Here
|
1 |
diff -urN einstein-2.0.orig/formatter.cpp einstein-2.0/formatter.cpp |
2 |
--- formatter.cpp 2005-08-13 22:40:58.000000000 -0400 |
3 |
+++ formatter.cpp 2006-08-15 11:18:28.000000000 -0400 |
4 |
@@ -58,7 +58,7 @@ |
5 |
if ((c.type == INT_ARG) || (c.type == STRING_ARG) || |
6 |
(c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG)) |
7 |
{ |
8 |
- int no = (int)c.data; |
9 |
+ long int no = (long int)c.data; |
10 |
args[no - 1] = c.type; |
11 |
} |
12 |
} |
13 |
@@ -123,7 +123,7 @@ |
14 |
std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const |
15 |
{ |
16 |
std::wstring s; |
17 |
- int no; |
18 |
+ long int no; |
19 |
|
20 |
for (int i = 0; i < commandsCnt; i++) { |
21 |
Command *cmd = &commands[i]; |
22 |
@@ -135,8 +135,8 @@ |
23 |
|
24 |
case STRING_ARG: |
25 |
case INT_ARG: |
26 |
- no = (int)cmd->data - 1; |
27 |
- if (no < (int)argValues.size()) |
28 |
+ no = (long int)cmd->data - 1; |
29 |
+ if (no < (long int)argValues.size()) |
30 |
s += argValues[no]->format(cmd); |
31 |
break; |