Bug 851439 - The paramter of _open_osfhandle() is intptr_t instead of long. r=jimm

This commit is contained in:
Makoto Kato 2013-03-18 19:05:15 +09:00
parent 3f1a26a1de
commit 4c602a322b

View File

@ -50,7 +50,7 @@ SetupConsole()
FILE *fp;
AllocConsole();
sCon = GetStdHandle(STD_OUTPUT_HANDLE);
int fd = _open_osfhandle(reinterpret_cast<long>(sCon), 0);
int fd = _open_osfhandle(reinterpret_cast<intptr_t>(sCon), 0);
fp = _fdopen(fd, "w");
*stdout = *fp;
setvbuf(stdout, NULL, _IONBF, 0);