Skip to content

Commit

Permalink
process, bugfix: compile error on windows i386.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Nov 11, 2017
1 parent 5f33537 commit c630e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fibjs/include/path.h
Expand Up @@ -39,7 +39,7 @@ class Path {
if (other.length() > 2) {
if (isWin32PathSlash(c_str[0]) && isWin32PathSlash(c_str[1])
&& !isWin32PathSlash(c_str[2])) {
for (int i = 3; i < other.length(); i++) {
for (int i = 3; i < (int32_t)other.length(); i++) {
if (isWin32PathSlash(c_str[i])) {
m_buf = other;
return;
Expand Down
2 changes: 1 addition & 1 deletion fibjs/src/process/SubProcess_win.cpp
Expand Up @@ -252,7 +252,7 @@ result_t SubProcess::wait(int32_t& retVal, AsyncEvent* ac)
}

private:
static void OnExited(void* context, BOOLEAN isTimeOut)
static void CALLBACK OnExited(void* context, BOOLEAN isTimeOut)
{
((asyncWaitHandle*)context)->apost(0);
}
Expand Down

0 comments on commit c630e3b

Please sign in to comment.