mirror of https://gitee.com/bigwinds/arangodb
fix cast
This commit is contained in:
parent
3a552cbc4f
commit
fb051ca0bf
|
@ -578,7 +578,7 @@ static void throwProgramError(std::string const& filename) {
|
||||||
|
|
||||||
std::string slurpProgram(std::string const& program) {
|
std::string slurpProgram(std::string const& program) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
UnicodeString uprog(program.c_str(), (uint16_t) program.length());
|
UnicodeString uprog(program.c_str(), static_cast<int32_t>(program.length()));
|
||||||
FILE* fp = _wpopen(uprog.getTerminatedBuffer(), L"r");
|
FILE* fp = _wpopen(uprog.getTerminatedBuffer(), L"r");
|
||||||
#else
|
#else
|
||||||
FILE* fp = popen(program.c_str(), "r");
|
FILE* fp = popen(program.c_str(), "r");
|
||||||
|
|
Loading…
Reference in New Issue