Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
einstein
einstein-formatter_cpp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File einstein-formatter_cpp.patch of Package einstein
diff --git a/einstein/formatter.cpp b/einstein/formatter.cpp index 8d76c12..1563d8f 100644 --- a/einstein/formatter.cpp +++ b/einstein/formatter.cpp @@ -58,7 +58,7 @@ Formatter::Formatter(unsigned char *data, int offset) 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 @@ class StrArgValue: public ArgValue 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 @@ std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const 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;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor