Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 143841
Collapse All | Expand All

(-)einstein-2.0.orig/formatter.cpp (-4 / +4 lines)
Lines 58-64 Link Here
58
            if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
58
            if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
59
                    (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG))
59
                    (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG))
60
            {
60
            {
61
                int no = (int)c.data;
61
                long int no = (long int)c.data;
62
                args[no - 1] = c.type;
62
                args[no - 1] = c.type;
63
            }
63
            }
64
        }
64
        }
Lines 123-129 Link Here
123
std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
123
std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
124
{
124
{
125
    std::wstring s;
125
    std::wstring s;
126
    int no;
126
    long int no;
127
127
128
    for (int i = 0; i < commandsCnt; i++) {
128
    for (int i = 0; i < commandsCnt; i++) {
129
        Command *cmd = &commands[i];
129
        Command *cmd = &commands[i];
Lines 135-142 Link Here
135
                
135
                
136
            case STRING_ARG:
136
            case STRING_ARG:
137
            case INT_ARG:
137
            case INT_ARG:
138
                no = (int)cmd->data - 1;
138
                no = (long int)cmd->data - 1;
139
                if (no < (int)argValues.size())
139
                if (no < (long int)argValues.size())
140
                    s += argValues[no]->format(cmd);
140
                    s += argValues[no]->format(cmd);
141
                break;
141
                break;
142
142

Return to bug 143841