X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=1b2fdf9dec5efff93d657b46ff042b31ef516254;hp=0c94ed892bfc669b6bcf1727c78910b3698a9bd7;hb=9934b8ec31483ceb98c19dfe4fface14fe384b32;hpb=3dccdf5b835b9856bcf869fbad90ae4914a2813c diff --git a/src/main.cpp b/src/main.cpp index 0c94ed89..1b2fdf9d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,6 +43,11 @@ int main(int argc, char* argv[]) { Eval::init(); TT.set_size(Options["Hash"]); + // Don't sync with C library I/O buffers, faster but now using printf() + // or scanf() could yield to issues because buffers are independent. + cout.sync_with_stdio(false); + cin.sync_with_stdio(false); + cout << engine_info() << endl; if (argc == 1)