X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=84937ae62209a5ea7a0b9445ce1c489182680af3;hb=7593c72477c93032e5cacf5df0faa424aa64913c;hp=29052a4c5b916edf786ed6a00607f9cc6d3d1225;hpb=6d6c23cdad629b9cbefef76b04ef5d59deccc4dc;p=xboard.git diff --git a/backend.c b/backend.c index 29052a4..84937ae 100644 --- a/backend.c +++ b/backend.c @@ -273,9 +273,9 @@ double u64ToDouble(u64 value) { double r; - u64 tmp = value & 0x7fffffffffffffff; + u64 tmp = value & u64Const(0x7fffffffffffffff); r = (double)(s64)tmp; - if (value & 0x8000000000000000) + if (value & u64Const(0x8000000000000000)) r += 9.2233720368547758080e18; /* 2^63 */ return r; } @@ -2855,7 +2855,7 @@ ParseBoard12(string) /* Update currentMove and known move number limits */ newMove = newGame || moveNum > forwardMostMove; - /* If we found takebacks during icsEngineAnalyze + /* If we found takebacks during icsEngineAnalyze try send to engine */ if (!newGame && appData.icsEngineAnalyze && moveNum < forwardMostMove) { takeback = forwardMostMove - moveNum; @@ -4456,7 +4456,7 @@ HandleMachineMove(message, cps) ToUpper(cps->twoMachinesColor[0]) : ' '), ((double) curscore) / 100.0, prefixHint ? lastHint : "", - prefixHint ? " " : "", buf1); + prefixHint ? " " : "", programStats.movelist); if (currentMove == forwardMostMove || gameMode == AnalyzeMode || gameMode == AnalyzeFile || appData.icsEngineAnalyze) { @@ -8921,12 +8921,12 @@ ReceiveFromProgram(isr, closure, message, count, error) cps->which, message); } /* if icsEngineAnalyze is active we block all - whisper and kibitz output, because nobody want - see this + whisper and kibitz output, because nobody want + see this */ if (appData.icsEngineAnalyze) { if (strstr(message, "whisper") != NULL || - strstr(message, "kibitz") != NULL || + strstr(message, "kibitz") != NULL || strstr(message, "tellics") != NULL) return; HandleMachineMove(message, cps); } else { @@ -9271,7 +9271,7 @@ DisplayAnalysisText(text) { char buf[MSG_SIZ]; - if (gameMode == AnalyzeMode || gameMode == AnalyzeFile + if (gameMode == AnalyzeMode || gameMode == AnalyzeFile || appData.icsEngineAnalyze) { sprintf(buf, "Analysis (%s)", first.tidy); AnalysisPopUp(buf, text);