Added patch for 64bit compatibility
This commit is contained in:
parent
4fb9923dd8
commit
09fa93f68a
@ -58,7 +58,7 @@ Formatter::Formatter(unsigned char *data, int offset)
|
|||||||
if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
|
if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
|
||||||
(c.type == FLOAT_ARG) || (c.type == DOUBLE_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;
|
args[no - 1] = c.type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -123,7 +123,7 @@ class StrArgValue: public ArgValue
|
|||||||
std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
|
std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
|
||||||
{
|
{
|
||||||
std::wstring s;
|
std::wstring s;
|
||||||
int no;
|
long int no;
|
||||||
|
|
||||||
for (int i = 0; i < commandsCnt; i++) {
|
for (int i = 0; i < commandsCnt; i++) {
|
||||||
Command *cmd = &commands[i];
|
Command *cmd = &commands[i];
|
||||||
@ -135,8 +135,8 @@ std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
|
|||||||
|
|
||||||
case STRING_ARG:
|
case STRING_ARG:
|
||||||
case INT_ARG:
|
case INT_ARG:
|
||||||
no = (int)cmd->data - 1;
|
no = (long int)cmd->data - 1;
|
||||||
if (no < (int)argValues.size())
|
if (no < (long int)argValues.size())
|
||||||
s += argValues[no]->format(cmd);
|
s += argValues[no]->format(cmd);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user