Skip to content

Commit cb04913

Browse files
committed
Fix compiler warning
clang warning: tesseractmain.cpp(512,21): warning: '&&' within '||' [-Wlogical-op-parentheses] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent b9a34d7 commit cb04913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/tesseractmain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static void PreloadRenderers(
509509
}
510510

511511
api->GetBoolVariable("tessedit_create_txt", &b);
512-
if (b || !error && renderers->empty()) {
512+
if (b || (!error && renderers->empty())) {
513513
tesseract::TessTextRenderer* renderer =
514514
new tesseract::TessTextRenderer(outputbase);
515515
if (renderer->happy()) {

0 commit comments

Comments
 (0)